Class: Calendlyr::SchedulingLinkResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/calendlyr/resources/scheduling_links.rb

Constant Summary

Constants inherited from Resource

Resource::ERROR_CODES

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Calendlyr::Resource

Instance Method Details

#create(owner_uri:, max_event_count:, owner_type: "EventType") ⇒ Object



3
4
5
6
# File 'lib/calendlyr/resources/scheduling_links.rb', line 3

def create(owner_uri:, max_event_count:, owner_type: "EventType")
  body = {owner: owner_uri, max_event_count: max_event_count, owner_type: owner_type}
  SchedulingLink.new post_request("scheduling_links", body: body).dig("resource").merge(client: client)
end