class ReadyTalk::Meeting
Public Class Methods
create(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 4 def self.create(opts = {}) response = request(:post, '/meetings', opts, :create_meeting) self.new(response, :meeting) end
details(id)
click to toggle source
# File lib/readytalk/meeting.rb, line 14 def self.details(id) response = request(:get, "/meetings/#{id}", :meeting_details) self.new(response, :meeting) end
list(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 9 def self.list(opts = {}) response = request(:get, '/meetings', opts, :list_meetings) Util.new_list_object(response, :meeting, :paging_criteria) end
Public Instance Methods
cancel(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 23 def cancel(opts = {}) response = request(:delete, "/meetings/#{id}", opts, :cancel_meeting) Util.parameterize_hash(response) end
create_invitations(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 39 def create_invitations(opts = {}) opts = opts.merge(meeting_id: self.id) opts[:email] = opts.fetch(:email, []).join(',') response = request(:post, '/invites', opts, :create_invitations) Util.new_list_object(response, :invite, :opt_out_email) end
create_registration(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 33 def create_registration(opts = {}) opts = opts.merge(meeting_id: self.id) response = request(:post, '/registrations', opts, :create_registration) Util.new_helper_object(response, :registration) end
details()
click to toggle source
# File lib/readytalk/meeting.rb, line 19 def details self.class.details(self.id) end
list_chats()
click to toggle source
# File lib/readytalk/meeting.rb, line 58 def list_chats response = request(:get, '/chats', {id: self.id}, :list_chats) Util.new_list_object(response, :chat) end
list_registrations(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 46 def list_registrations(opts = {}) opts = opts.merge(meeting_id: self.id) response = request(:get, '/registrations', opts, :list_registrations) Util.new_list_object(response, :registration, :paging_criteria) end
list_surveys(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 52 def list_surveys(opts = {}) opts = opts.merge(meeting_id: self.id) response = request(:get, '/registrations/surveys', opts, :list_post_event_surveys) Util.new_list_object(response, :survey, :paging_criteria, :custom_link) end
update(opts = {})
click to toggle source
# File lib/readytalk/meeting.rb, line 28 def update(opts = {}) response = request(:put, "/meetings/#{id}", opts, :update_meeting) update_data(response, :meeting) end