Class: Calendlyr::User

Inherits:
Object
  • Object
show all
Defined in:
lib/calendlyr/objects/user.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

#availability_schedules(**params) ⇒ Object



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

def availability_schedules(**params)
  client.availability.list_user_schedules(**params.merge(user: uri))
end

#busy_times(start_time:, end_time:, **params) ⇒ Object



27
28
29
# File 'lib/calendlyr/objects/user.rb', line 27

def busy_times(start_time:, end_time:, **params)
  client.availability.list_user_busy_times(**params.merge(user: uri, start_time: start_time, end_time: end_time))
end

#event_types(**params) ⇒ Object



11
12
13
# File 'lib/calendlyr/objects/user.rb', line 11

def event_types(**params)
  client.event_types.list(**params.merge(user: uri))
end

#events(**params) ⇒ Object



15
16
17
# File 'lib/calendlyr/objects/user.rb', line 15

def events(**params)
  client.events.list(**params.merge(user: uri, organization: current_organization))
end

#membership(uuid:) ⇒ Object



19
20
21
# File 'lib/calendlyr/objects/user.rb', line 19

def membership(uuid:)
  organization.membership(uuid: uuid)
end

#memberships(**params) ⇒ Object



23
24
25
# File 'lib/calendlyr/objects/user.rb', line 23

def memberships(**params)
  organization.memberships(**params.merge(user: uri))
end

#organizationObject



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

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