Class: Updox::Models::Calendar
- Defined in:
- lib/updox/models/calendar.rb
Constant Summary collapse
- SYNC_ENDPOINT =
'/CalendarsSync'.freeze
Constants inherited from Model
Model::LIST_NAME, Model::LIST_TYPE
Instance Method Summary collapse
Methods inherited from Model
Instance Method Details
#create(account_id:) ⇒ Object
18 19 20 |
# File 'lib/updox/models/calendar.rb', line 18 def create(account_id: ) self.class.from_response(UpdoxClient.connection.request(endpoint: SYNC_ENDPOINT, body: self.to_h, auth: {accountId: account_id}, required_auths: Updox::Models::Auth::AUTH_ACCT)) end |