Class: Calendlyr::Webhooks::Subscription
- Inherits:
-
Object
- Object
- OpenStruct
- Object
- Calendlyr::Webhooks::Subscription
show all
- Defined in:
- lib/calendlyr/objects/webhooks/subscription.rb
Instance Method Summary
collapse
Methods inherited from Object
#extract_uuid, #get_slug, get_slug, #initialize, #to_ostruct
Instance Method Details
#active? ⇒ Boolean
15
16
17
|
# File 'lib/calendlyr/objects/webhooks/subscription.rb', line 15
def active?
state == "active"
end
|
#associated_creator ⇒ Object
11
12
13
|
# File 'lib/calendlyr/objects/webhooks/subscription.rb', line 11
def associated_creator
client.users.retrieve(uuid: get_slug(creator))
end
|
#associated_organization ⇒ Object
3
4
5
|
# File 'lib/calendlyr/objects/webhooks/subscription.rb', line 3
def associated_organization
Organization.new({"uri" => organization}.merge(client: client))
end
|
#associated_user ⇒ Object
7
8
9
|
# File 'lib/calendlyr/objects/webhooks/subscription.rb', line 7
def associated_user
client.users.retrieve(uuid: get_slug(user))
end
|
#disabled? ⇒ Boolean
19
20
21
|
# File 'lib/calendlyr/objects/webhooks/subscription.rb', line 19
def disabled?
state == "disabled"
end
|