Class: Calendlyr::EventInviteeResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/calendlyr/resources/event_invitees.rb

Constant Summary

Constants inherited from Resource

Resource::ERROR_CODES

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Calendlyr::Resource

Instance Method Details

#list(event_uuid:, **params) ⇒ Object



3
4
5
6
# File 'lib/calendlyr/resources/event_invitees.rb', line 3

def list(event_uuid:, **params)
  response = get_request("scheduled_events/#{event_uuid}/invitees", params: params.compact)
  Collection.from_response(response, key: "collection", type: EventInvitee, client: client)
end

#retrieve(event_uuid:, invitee_uuid:) ⇒ Object



8
9
10
# File 'lib/calendlyr/resources/event_invitees.rb', line 8

def retrieve(event_uuid:, invitee_uuid:)
  EventInvitee.new get_request("scheduled_events/#{event_uuid}/invitees/#{invitee_uuid}").dig("resource").merge(client: client)
end