Class: Calendlyr::Event
- Defined in:
- lib/calendlyr/objects/event.rb
Instance Method Summary collapse
Methods inherited from Object
#extract_uuid, #get_slug, get_slug, #initialize, #to_ostruct
Constructor Details
This class inherits a constructor from Calendlyr::Object
Instance Method Details
#cancel(reason: nil) ⇒ Object
7 8 9 |
# File 'lib/calendlyr/objects/event.rb', line 7 def cancel(reason: nil) client.events.cancel(uuid: uuid, reason: reason) end |
#memberships ⇒ Object
3 4 5 |
# File 'lib/calendlyr/objects/event.rb', line 3 def memberships event_memberships.map { |membership| client.users.retrieve(uuid: get_slug(membership.user)) } end |