class MyJohnDeereApi::Request::Collection::AssetLocations
Public Instance Methods
create(attributes)
click to toggle source
Create
a new asset location
# File lib/my_john_deere_api/request/collection/asset_locations.rb, line 22 def create(attributes) merged_attributes = attributes.merge(asset_id: associations[:asset]) Create::AssetLocation.new(client, merged_attributes).object end
model()
click to toggle source
This is the class used to model the data
# File lib/my_john_deere_api/request/collection/asset_locations.rb, line 15 def model MyJohnDeereApi::Model::AssetLocation end
resource()
click to toggle source
The resource path for the first page in the collection
# File lib/my_john_deere_api/request/collection/asset_locations.rb, line 8 def resource "/platform/assets/#{associations[:asset]}/locations" end