Class: Calendlyr::Organizations::Membership
Instance Method Summary
collapse
#extract_uuid, #get_slug, get_slug, #initialize, #to_ostruct
Instance Method Details
#associated_organization ⇒ Object
3
4
5
|
# File 'lib/calendlyr/objects/organizations/membership.rb', line 3
def associated_organization
Organization.new({"uri" => organization}.merge(client: client))
end
|
#associated_user ⇒ Object
7
8
9
|
# File 'lib/calendlyr/objects/organizations/membership.rb', line 7
def associated_user
client.users.retrieve(uuid: get_slug(user.uri))
end
|
#group_relationships(**params) ⇒ Object
11
12
13
|
# File 'lib/calendlyr/objects/organizations/membership.rb', line 11
def group_relationships(**params)
client.groups.list_relationships(**params.merge(owner: uri))
end
|