def update_room(options = {})
      merged_options = {
        :privacy => 'public',
        :is_archived => false,
        :is_guest_accessible => false
      }.merge symbolize(options)

      response = self.class.send(@api.topic_config[:method], @api.update_room_config[:url],
        :query => { :auth_token => @token },
        :body => {
          :name => merged_options[:name],
          :topic => merged_options[:topic],
          :privacy => merged_options[:privacy],
          :is_archived => @api.bool_val(merged_options[:is_archived]),
          :is_guest_accessible => @api.bool_val(merged_options[:is_guest_accessible]),
          :owner => merged_options[:owner]
        }.to_json,
        :headers => @api.headers)

      ErrorHandler.response_code_to_exception_for :room, room_id, response
      true
    end
def update_room(options = {})
      merged_options = {
        :privacy => 'public',
        :is_archived => false,
        :is_guest_accessible => false
      }.merge symbolize(options)

      response = self.class.send(@api.topic_config[:method], @api.update_room_config[:url],
        :query => { :auth_token => @token },
        :body => {
          :name => merged_options[:name],
          :topic => merged_options[:topic],
          :privacy => merged_options[:privacy],
          :is_archived => @api.bool_val(merged_options[:is_archived]),
          :is_guest_accessible => @api.bool_val(merged_options[:is_guest_accessible]),
          :owner => merged_options[:owner]
        }.to_json,
        :headers => @api.headers)

      ErrorHandler.response_code_to_exception_for :room, room_id, response
      true
    end
Update a room