class GoToWebinar::Session
Public Class Methods
all()
click to toggle source
# File lib/go_to_webinar/session.rb, line 59 def self.all make(GoToWebinar.client.get('/organizers/:organizer_key:/sessions')) end
find(webinar_key:, session_key:)
click to toggle source
# File lib/go_to_webinar/session.rb, line 50 def self.find(webinar_key:, session_key:) data = make(GoToWebinar.client.get("/organizers/:organizer_key:/webinars/#{webinar_key}/sessions/#{session_key}")) Session.new(data) end
for_webinar(webinar_key:)
click to toggle source
# File lib/go_to_webinar/session.rb, line 55 def self.for_webinar(webinar_key:) make(GoToWebinar.client.get("/organizers/:organizer_key:/webinars/#{webinar_key}/sessions")) end
make(data)
click to toggle source
# File lib/go_to_webinar/session.rb, line 63 def self.make(data) data.map { |registrant| Session.new(registrant) } end
new(data)
click to toggle source
# File lib/go_to_webinar/session.rb, line 5 def initialize(data) @data = data end
Public Instance Methods
attendees()
click to toggle source
Get session attendees
# File lib/go_to_webinar/session.rb, line 46 def attendees Attendee.all_for_session(webinar_key: webinar_key, session_key: session_key) end
end_time()
click to toggle source
endTime* string($date-time) The ending time of the webinar session
# File lib/go_to_webinar/session.rb, line 41 def end_time @data['endTime']&.to_datetime end
registrants_attended()
click to toggle source
registrantsAttended* integer($int32) The number of registrants who attended the webinar session
# File lib/go_to_webinar/session.rb, line 17 def registrants_attended @data['registrantsAttended'].to_s end
session_key()
click to toggle source
sessionKey* integer($int64) The unique key of the webinar session
# File lib/go_to_webinar/session.rb, line 35 def session_key @data['sessionKey'].to_s end
start_time()
click to toggle source
startTime* string($date-time) The starting time of the webinar session
# File lib/go_to_webinar/session.rb, line 11 def start_time @data['startTime']&.to_datetime end
webinar_id()
click to toggle source
webinarID* string The 9-digit webinar ID
# File lib/go_to_webinar/session.rb, line 29 def webinar_id @data['webinarID'].to_s end
webinar_key()
click to toggle source
webinarKey* integer($int64) The unique key of the webinar
# File lib/go_to_webinar/session.rb, line 23 def webinar_key @data['webinarKey'].to_s end