Class: Calendly::Invitee
- Inherits:
-
Object
- Object
- Calendly::Invitee
- Includes:
- ModelUtils
- Defined in:
- lib/calendly/models/invitee.rb
Overview
Calendly’s Invitee model. An individual who has been invited to meet with a Calendly member.
Constant Summary collapse
- UUID_RE =
%r{\A#{Client::API_HOST}/scheduled_events/\w+/invitees/(\w+)\z}.freeze
- TIME_FIELDS =
%i[created_at updated_at].freeze
- ASSOCIATION =
{event: Event}.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Moment when user record was first created.
-
#email ⇒ String
The invitee’s email address.
-
#event ⇒ Event
Reference to Event associated with this invitee.
-
#name ⇒ String
The invitee’s human-readable name.
-
#questions_and_answers ⇒ Array<Calendly::InviteeQuestionAndAnswer>
A collection of form responses from the invitee.
-
#status ⇒ String
Whether the invitee has canceled or is still active.
-
#text_reminder_number ⇒ String
Text (SMS) reminder phone number.
-
#timezone ⇒ String
Timezone offest to use when presenting time information to invitee.
- #tracking ⇒ Calendly::InviteeTracking
-
#updated_at ⇒ Time
Moment when user record was last updated.
-
#uri ⇒ String
Canonical resource reference.
-
#uuid ⇒ String
unique id of the Invitee object.
Instance Method Summary collapse
-
#fetch ⇒ Calendly::Invitee
Get Event Invitee associated with self.
Methods included from ModelUtils
#client, #id, included, #initialize, #inspect
Instance Attribute Details
#created_at ⇒ Time
Moment when user record was first created.
35 36 37 |
# File 'lib/calendly/models/invitee.rb', line 35 def created_at @created_at end |
#email ⇒ String
The invitee’s email address.
20 21 22 |
# File 'lib/calendly/models/invitee.rb', line 20 def email @email end |
#event ⇒ Event
Reference to Event associated with this invitee.
42 43 44 |
# File 'lib/calendly/models/invitee.rb', line 42 def event @event end |
#name ⇒ String
The invitee’s human-readable name.
23 24 25 |
# File 'lib/calendly/models/invitee.rb', line 23 def name @name end |
#questions_and_answers ⇒ Array<Calendly::InviteeQuestionAndAnswer>
A collection of form responses from the invitee.
46 47 48 |
# File 'lib/calendly/models/invitee.rb', line 46 def questions_and_answers @questions_and_answers end |
#status ⇒ String
Whether the invitee has canceled or is still active.
26 27 28 |
# File 'lib/calendly/models/invitee.rb', line 26 def status @status end |
#text_reminder_number ⇒ String
Text (SMS) reminder phone number.
32 33 34 |
# File 'lib/calendly/models/invitee.rb', line 32 def text_reminder_number @text_reminder_number end |
#timezone ⇒ String
Timezone offest to use when presenting time information to invitee.
29 30 31 |
# File 'lib/calendly/models/invitee.rb', line 29 def timezone @timezone end |
#tracking ⇒ Calendly::InviteeTracking
49 50 51 |
# File 'lib/calendly/models/invitee.rb', line 49 def tracking @tracking end |
#updated_at ⇒ Time
Moment when user record was last updated.
38 39 40 |
# File 'lib/calendly/models/invitee.rb', line 38 def updated_at @updated_at end |
#uri ⇒ String
Canonical resource reference.
17 18 19 |
# File 'lib/calendly/models/invitee.rb', line 17 def uri @uri end |
#uuid ⇒ String
unique id of the Invitee object.
14 15 16 |
# File 'lib/calendly/models/invitee.rb', line 14 def uuid @uuid end |
Instance Method Details
#fetch ⇒ Calendly::Invitee
Get Event Invitee associated with self.
59 60 61 62 |
# File 'lib/calendly/models/invitee.rb', line 59 def fetch ev_uuid = event.uuid if event client.event_invitee ev_uuid, uuid end |