Class: Calendlyr::EventType

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



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

def associated_profile
  EventTypes::Profile.new(profile.to_h.merge(client: client))
end

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



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

def available_times(start_time:, end_time:, **params)
  client.event_types.list_available_times(**params.merge(event_type: uri, start_time: start_time, end_time: end_time))
end

#create_share(**params) ⇒ Object



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

def create_share(**params)
  client.shares.create(**params.merge(event_type: uri))
end