Class: Openfire::Service::Room

Inherits:
Base
  • Object
show all
Defined in:
lib/openfire/service/room.rb

Defined Under Namespace

Classes: AlreadyExistsException, HTTPException, IllegalArgumentException, InvalidResponseException, NotAllowedException, NotFoundException, RequestNotAuthorisedException, RoomServiceDisabledException

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Openfire::Service::Base

Instance Method Details

#add_room!(opts) ⇒ Object



24
25
26
# File 'lib/openfire/service/room.rb', line 24

def add_room!(opts)
  submit_request(opts.merge(:type => :add))
end

#create_muc_service!(opts) ⇒ Object



32
33
34
# File 'lib/openfire/service/room.rb', line 32

def create_muc_service!(opts)
  submit_request(opts.merge(:type => :createMultiUserChatService))
end

#delete_muc_service!(opts) ⇒ Object



40
41
42
# File 'lib/openfire/service/room.rb', line 40

def delete_muc_service!(opts)
  submit_request(opts.merge(:type => :removeMultiUserChatService))
end

#delete_room!(opts) ⇒ Object



28
29
30
# File 'lib/openfire/service/room.rb', line 28

def delete_room!(opts)
  submit_request(opts.merge(:type => :delete))
end

#rename_muc_service!(opts) ⇒ Object



36
37
38
# File 'lib/openfire/service/room.rb', line 36

def rename_muc_service!(opts)
  submit_request(opts.merge(:type => :updateMultiUserChatService))
end