class GoToWebinar::Registrant

Public Class Methods

all(webinar_key:) click to toggle source
# File lib/go_to_webinar/registrant.rb, line 30
def self.all(webinar_key:)
  make(GoToWebinar.client.get("/organizers/:organizer_key:/webinars/#{webinar_key}/registrants"))
end
create(webinar_key:, data:) click to toggle source
# File lib/go_to_webinar/registrant.rb, line 25
def self.create(webinar_key:, data:)
  data = GoToWebinar.client.post("/organizers/:organizer_key:/webinars/#{webinar_key}/registrants", data)
  Registrant.new(data)
end
find(webinar_key:, registrant_key:) click to toggle source
# File lib/go_to_webinar/registrant.rb, line 34
def self.find(webinar_key:, registrant_key:)
  Registrant.new(GoToWebinar.client.get("/organizers/:organizer_key:/webinars/#{webinar_key}/registrants/#{registrant_key}"))
end
make(data) click to toggle source
# File lib/go_to_webinar/registrant.rb, line 38
def self.make(data)
  data.map { |registrant| Registrant.new(registrant) }
end
new(data) click to toggle source
# File lib/go_to_webinar/registrant.rb, line 5
def initialize(data)
  @data = data
end

Public Instance Methods

destroy() click to toggle source
# File lib/go_to_webinar/registrant.rb, line 21
def destroy
  GoToWebinar.client.delete("/organizers/:organizer_key:/webinars/#{webinar_key}/registrants/#{registrant_key}")
end
join_url() click to toggle source
# File lib/go_to_webinar/registrant.rb, line 17
def join_url
  @data['joinUrl'].to_s
end
registrant_key() click to toggle source
# File lib/go_to_webinar/registrant.rb, line 9
def registrant_key
  @data['registrantKey'].to_s
end
webinar_key() click to toggle source
# File lib/go_to_webinar/registrant.rb, line 13
def webinar_key
  @data['webinarKey'].to_s
end