Class: Updox::Models::Calendar

Inherits:
Model
  • Object
show all
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

from_response

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: }, required_auths: Updox::Models::Auth::AUTH_ACCT))
end