class MyJohnDeereApi::Request::Collection::Flags

Public Instance Methods

create(attributes) click to toggle source

Create a new flag (NOT YET IMPLEMENTED)

# File lib/my_john_deere_api/request/collection/flags.rb, line 22
def create(attributes)
  raise NotImplementedError
end
find(asset_id) click to toggle source

Retrieve an flag from JD (NOT YET IMPLEMENTED)

# File lib/my_john_deere_api/request/collection/flags.rb, line 29
def find(asset_id)
  raise NotImplementedError
end
model() click to toggle source

This is the class used to model the data

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

The resource path for the first page in the collection

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