Class: Calendlyr::Groups::Relationship
- Inherits:
-
Object
- Object
- OpenStruct
- Object
- Calendlyr::Groups::Relationship
show all
- Defined in:
- lib/calendlyr/objects/groups/relationship.rb
Instance Method Summary
collapse
Methods inherited from Object
#extract_uuid, #get_slug, get_slug, #initialize, #to_ostruct
Instance Method Details
#associated_group ⇒ Object
7
8
9
|
# File 'lib/calendlyr/objects/groups/relationship.rb', line 7
def associated_group
client.groups.retrieve(uuid: get_slug(group))
end
|
#associated_organization ⇒ Object
3
4
5
|
# File 'lib/calendlyr/objects/groups/relationship.rb', line 3
def associated_organization
Organization.new({"uri" => organization}.merge(client: client))
end
|
#associated_owner ⇒ Object
11
12
13
|
# File 'lib/calendlyr/objects/groups/relationship.rb', line 11
def associated_owner
client.organizations.retrieve_membership(uuid: get_slug(owner.uri))
end
|