Class: Calendlyr::Groups::Relationship

Inherits:
Object
  • Object
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

Constructor Details

This class inherits a constructor from Calendlyr::Object

Instance Method Details

#associated_groupObject



7
8
9
# File 'lib/calendlyr/objects/groups/relationship.rb', line 7

def associated_group
  client.groups.retrieve(uuid: get_slug(group))
end

#associated_organizationObject



3
4
5
# File 'lib/calendlyr/objects/groups/relationship.rb', line 3

def associated_organization
  Organization.new({"uri" => organization}.merge(client: client))
end

#associated_ownerObject



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