def fetch_room_id
      connect do |http|
        response = http.request(http_request(:get, "/rooms.json"))

        case response
        when Net::HTTPOK
          find_room_in_json(JSON.parse(response.body))
        else
          raise ConnectionError
        end
      end
    end
def fetch_room_id
      connect do |http|
        response = http.request(http_request(:get, "/rooms.json"))

        case response
        when Net::HTTPOK
          find_room_in_json(JSON.parse(response.body))
        else
          raise ConnectionError
        end
      end
    end
Internal: Returns the Integer number of the room.

 Returns the Integer room number.
 Raises NotFound if a room cannot be found for the given name.
 Raises ConnectionError if an HTTP error occurs.