Class: Calendlyr::SharesResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/calendlyr/resources/shares.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(event_type:, **params) ⇒ Object



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

def create(event_type:, **params)
  body = {event_type: event_type}.merge(params)
  Share.new post_request("shares", body: body).dig("resource").merge(client: client)
end