class GoToWebinar::Attendee
Public Class Methods
all_for_session(webinar_key:, session_key:)
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 45 def self.all_for_session(webinar_key:, session_key:) make(GoToWebinar.client.get("/organizers/:organizer_key:/webinars/#{webinar_key}/sessions/#{session_key}/attendees")) end
make(data)
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 49 def self.make(data) data.map { |registrant| Attendee.new(registrant) } end
new(data)
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 5 def initialize(data) @data = data end
Public Instance Methods
attendance()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 33 def attendance @data['attendance'] end
attendance_time_in_seconds()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 25 def attendance_time_in_seconds @data['attendanceTimeInSeconds'].to_s end
email()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 21 def email @data['email'].to_s end
first_name()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 13 def first_name @data['firstName'].to_s end
join_time()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 37 def join_time attendance['joinTime'].to_datetime end
last_name()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 17 def last_name @data['lastName'].to_s end
leave_time()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 41 def leave_time attendance['leaveTime'].to_datetime end
registrant_key()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 9 def registrant_key @data['registrantKey'].to_s end
session_key()
click to toggle source
# File lib/go_to_webinar/attendee.rb, line 29 def session_key @data['sessionKey'].to_s end