Class: Calendly::EventTypeProfile
- Inherits:
-
Object
- Object
- Calendly::EventTypeProfile
- Includes:
- ModelUtils
- Defined in:
- lib/calendly/models/event_type_profile.rb
Overview
Calendly’s event type profile model.
Constant Summary
Constants included from ModelUtils
Instance Attribute Summary collapse
-
#name ⇒ String
Human-readable name for the profile of the user that’s associated with the event type.
-
#owner ⇒ String
The unique reference to the user associated with the profile.
-
#owner_team ⇒ Calendly::Team
The owner team if the profile belongs to a “team”.
-
#owner_user ⇒ Calendly::User
The owner user if the profile belongs to a “user” (individual).
-
#type ⇒ String
Indicates if the profile belongs to a “user” (individual) or “team”.
Instance Method Summary collapse
-
#type_team? ⇒ Boolean
whether type is team or not.
-
#type_user? ⇒ Boolean
whether type is user or not.
Methods included from ModelUtils
#client, #id, included, #initialize, #inspect
Instance Attribute Details
#name ⇒ String
Human-readable name for the profile of the user that’s associated with the event type
14 15 16 |
# File 'lib/calendly/models/event_type_profile.rb', line 14 def name @name end |
#owner ⇒ String
The unique reference to the user associated with the profile
18 19 20 |
# File 'lib/calendly/models/event_type_profile.rb', line 18 def owner @owner end |
#owner_team ⇒ Calendly::Team
The owner team if the profile belongs to a “team”.
26 27 28 |
# File 'lib/calendly/models/event_type_profile.rb', line 26 def owner_team @owner_team end |
#owner_user ⇒ Calendly::User
The owner user if the profile belongs to a “user” (individual).
22 23 24 |
# File 'lib/calendly/models/event_type_profile.rb', line 22 def owner_user @owner_user end |
#type ⇒ String
Indicates if the profile belongs to a “user” (individual) or “team”
10 11 12 |
# File 'lib/calendly/models/event_type_profile.rb', line 10 def type @type end |
Instance Method Details
#type_team? ⇒ Boolean
whether type is team or not.
38 39 40 |
# File 'lib/calendly/models/event_type_profile.rb', line 38 def type_team? type&.downcase == 'team' end |
#type_user? ⇒ Boolean
whether type is user or not.
31 32 33 |
# File 'lib/calendly/models/event_type_profile.rb', line 31 def type_user? type&.downcase == 'user' end |