class MyJohnDeereApi::Request::Collection::ContributionDefinitions

Public Instance Methods

find(item_id) click to toggle source

Retrieve an item from JD

# File lib/my_john_deere_api/request/collection/contribution_definitions.rb, line 22
def find(item_id)
  Individual::ContributionDefinition.new(client, item_id).object
end
model() click to toggle source

This is the class used to model the data

# File lib/my_john_deere_api/request/collection/contribution_definitions.rb, line 15
def model
  MyJohnDeereApi::Model::ContributionDefinition
end
resource() click to toggle source

The resource path for the first page in the collection

# File lib/my_john_deere_api/request/collection/contribution_definitions.rb, line 8
def resource
  "/platform/contributionProducts/#{associations[:contribution_product]}/contributionDefinitions"
end