def host
      begin
        response = EventMachine::HttpRequest.new("http://turntable.fm/api/room.which_chatserver?roomid=#{id}").get.response
        success, data = response.empty? ? [nil, {}] : JSON.parse(response)
        raise(ConnectionError, data['err']) unless success

        self.attributes = data
      end unless @host
      @host
    end
def host
      begin
        response = EventMachine::HttpRequest.new("http://turntable.fm/api/room.which_chatserver?roomid=
        success, data = response.empty? ? [nil, {}] : JSON.parse(response)
        raise(ConnectionError, data['err']) unless success

        self.attributes = data
      end unless @host
      @host
    end
def host begin response = EventMachine :: HttpRequest . new ( "http://turntable.fm/api/room.which_chatserver?roomid=#{id}" ) . get . response success , data = response . empty? ? [ nil , { } ] : JSON . parse ( response ) raise ( ConnectionError , data [ 'err' ] ) unless success self . attributes = data end unless @host @host end
@api private
 Uses the configured chat host or attempts to look it up based on the room id

 @return [String]
 @raise [Turntabler::Error] if the host lookup fails
@api private Uses the configured chat host or attempts to look it up based on the room id