Module: Zoomify::Resources::ImChat

Included in:
Client
Defined in:
lib/zoomify/resources/im_chat.rb

Instance Method Summary collapse

Instance Method Details

#im_chat_session_messages(*args) ⇒ Object



8
9
10
11
12
# File 'lib/zoomify/resources/im_chat.rb', line 8

def im_chat_session_messages *args
  params = Request.retrieve_params_and_manage_from_to_error *args
  (raise Request.argument_error "Session's id") if params[:id].blank?
  self.class.fire_get("/im/chat/sessions/#{params[:id]}", params)
end

#im_chat_sessions(*args) ⇒ Object



4
5
6
7
# File 'lib/zoomify/resources/im_chat.rb', line 4

def im_chat_sessions *args
  params = Request.retrieve_params_and_manage_from_to_error *args
  self.class.fire_get("/im/chat/sessions", params)
end