Class: Calendlyr::Organization
- Inherits:
-
Object
- Object
- OpenStruct
- Object
- Calendlyr::Organization
show all
- Defined in:
- lib/calendlyr/objects/organization.rb
Instance Method Summary
collapse
Methods inherited from Object
#extract_uuid, #get_slug, get_slug, #initialize, #to_ostruct
Instance Method Details
#activity_logs(**params) ⇒ Object
3
4
5
|
# File 'lib/calendlyr/objects/organization.rb', line 3
def activity_logs(**params)
client.organizations.activity_log(**params.merge(organization: uri))
end
|
#create_webhook(url:, events:, scope:, **params) ⇒ Object
42
43
44
|
# File 'lib/calendlyr/objects/organization.rb', line 42
def create_webhook(url:, events:, scope:, **params)
client.webhooks.create(**params.merge(organization: uri, url: url, events: events, scope: scope))
end
|
#event_types(**params) ⇒ Object
11
12
13
|
# File 'lib/calendlyr/objects/organization.rb', line 11
def event_types(**params)
client.event_types.list(**params.merge(organization: uri))
end
|
#events(**params) ⇒ Object
7
8
9
|
# File 'lib/calendlyr/objects/organization.rb', line 7
def events(**params)
client.events.list(**params.merge(organization: uri))
end
|
#group_relationships(**params) ⇒ Object
24
25
26
|
# File 'lib/calendlyr/objects/organization.rb', line 24
def group_relationships(**params)
client.groups.list_relationships(**params.merge(organization: uri))
end
|
#groups(**params) ⇒ Object
20
21
22
|
# File 'lib/calendlyr/objects/organization.rb', line 20
def groups(**params)
client.groups.list(**params.merge(organization: uri))
end
|
#invitation(invitation_uuid:) ⇒ Object
59
60
61
|
# File 'lib/calendlyr/objects/organization.rb', line 59
def invitation(invitation_uuid:)
client.organizations.retrieve_invitation(org_uuid: uuid, uuid: invitation_uuid)
end
|
#invitations(**params) ⇒ Object
55
56
57
|
# File 'lib/calendlyr/objects/organization.rb', line 55
def invitations(**params)
client.organizations.list_invitations(**params.merge(uuid: uuid))
end
|
#invite_user(email:, **params) ⇒ Object
51
52
53
|
# File 'lib/calendlyr/objects/organization.rb', line 51
def invite_user(email:, **params)
client.organizations.invite(**params.merge(organization_uuid: uuid, email: email))
end
|
#membership(uuid:) ⇒ Object
33
34
35
|
# File 'lib/calendlyr/objects/organization.rb', line 33
def membership(uuid:)
client.organizations.retrieve_membership(uuid: uuid)
end
|
#memberships(**params) ⇒ Object
29
30
31
|
# File 'lib/calendlyr/objects/organization.rb', line 29
def memberships(**params)
client.organizations.list_memberships(**params.merge(organization: uri))
end
|
#revoke_invitation(invitation_uuid:) ⇒ Object
63
64
65
|
# File 'lib/calendlyr/objects/organization.rb', line 63
def revoke_invitation(invitation_uuid:)
client.organizations.revoke_invitation(org_uuid: uuid, uuid: invitation_uuid)
end
|
15
16
17
|
# File 'lib/calendlyr/objects/organization.rb', line 15
def routing_forms(**params)
client.routing_forms.list(**params.merge(organization: uri))
end
|
#sample_webhook_data(event:, scope:, **params) ⇒ Object
46
47
48
|
# File 'lib/calendlyr/objects/organization.rb', line 46
def sample_webhook_data(event:, scope:, **params)
client.webhooks.sample_webhook_data(event: event, scope: scope, organization: uri, **params)
end
|
#webhooks(scope:, **params) ⇒ Object
38
39
40
|
# File 'lib/calendlyr/objects/organization.rb', line 38
def webhooks(scope:, **params)
client.webhooks.list(**params.merge(organization: uri, scope: scope))
end
|