Class: Updox::Models::Location
- Inherits:
-
Model
- Object
- Hashie::Trash
- Model
- Updox::Models::Location
show all
- Defined in:
- lib/updox/models/location.rb
Constant Summary
collapse
- SYNC_ENDPOINT =
'/LocationsSync'.freeze
Constants inherited
from Model
Model::LIST_NAME, Model::LIST_TYPE
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
from_response
Class Method Details
.sync(locations, account_id:) ⇒ Object
Instance Method Details
#save(account_id:) ⇒ Object
14
15
16
|
# File 'lib/updox/models/location.rb', line 14
def save(account_id: )
self.class.sync([self], account_id: account_id)
end
|