Class: Calendly::EventTypeProfile

Inherits:
Object
  • Object
show all
Includes:
ModelUtils
Defined in:
lib/calendly/models/event_type_profile.rb

Overview

Calendly’s event type profile model.

Constant Summary

Constants included from ModelUtils

ModelUtils::UUID_FORMAT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModelUtils

#client, #id, included, #initialize, #inspect

Instance Attribute Details

#nameString

Human-readable name for the profile of the user that’s associated with the event type

Returns:

  • (String)


14
15
16
# File 'lib/calendly/models/event_type_profile.rb', line 14

def name
  @name
end

#ownerString

The unique reference to the user associated with the profile

Returns:

  • (String)


18
19
20
# File 'lib/calendly/models/event_type_profile.rb', line 18

def owner
  @owner
end

#owner_teamCalendly::Team

The owner team if the profile belongs to a “team”.

Returns:



26
27
28
# File 'lib/calendly/models/event_type_profile.rb', line 26

def owner_team
  @owner_team
end

#owner_userCalendly::User

The owner user if the profile belongs to a “user” (individual).

Returns:



22
23
24
# File 'lib/calendly/models/event_type_profile.rb', line 22

def owner_user
  @owner_user
end

#typeString

Indicates if the profile belongs to a “user” (individual) or “team”

Returns:

  • (String)


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.

Returns:

  • (Boolean)

Since:

  • 0.6.0



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.

Returns:

  • (Boolean)

Since:

  • 0.6.0



31
32
33
# File 'lib/calendly/models/event_type_profile.rb', line 31

def type_user?
  type&.downcase == 'user'
end