class MyJohnDeereApi::Request::Collection::Fields

Public Instance Methods

find(field_id) click to toggle source

Retrieve a field from JD

# File lib/my_john_deere_api/request/collection/fields.rb, line 22
def find(field_id)
  Individual::Field.new(client, field_id, organization: associations[:organization]).object
end
model() click to toggle source

This is the class used to model the data

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

The resource path for the first page in the collection

# File lib/my_john_deere_api/request/collection/fields.rb, line 8
def resource
  "/platform/organizations/#{associations[:organization]}/fields"
end