Class: MyJohnDeereApi::Request::Individual::Asset

Inherits:
Base
  • Object
show all
Defined in:
lib/my_john_deere_api/request/individual/asset.rb

Instance Attribute Summary

Attributes inherited from Base

#associations, #client, #id

Instance Method Summary collapse

Methods inherited from Base

#initialize, #object

Constructor Details

This class inherits a constructor from MyJohnDeereApi::Request::Individual::Base

Instance Method Details

#modelObject

This is the class used to model the data



15
16
17
# File 'lib/my_john_deere_api/request/individual/asset.rb', line 15

def model
  MyJohnDeereApi::Model::Asset
end

#resourceObject

The resource path for the object



8
9
10
# File 'lib/my_john_deere_api/request/individual/asset.rb', line 8

def resource
  "/platform/assets/#{id}"
end