class MyJohnDeereApi::Model::ContributionProduct

Attributes

activation_callback[R]
current_status[R]
default_locale[R]
market_place_description[R]
market_place_name[R]
preview_images[R]
supported_operation_centers[R]
supported_regions[R]

Public Instance Methods

contribution_definitions() click to toggle source

contribution definitions associated with this contribution product

# File lib/my_john_deere_api/model/contribution_product.rb, line 11
def contribution_definitions
  return @contribution_definitions if defined?(@contribution_definitions)
  @contribution_definitions = Request::Collection::ContributionDefinitions.new(client, contribution_product: id)
end

Private Instance Methods

expected_record_type() click to toggle source
# File lib/my_john_deere_api/model/contribution_product.rb, line 29
def expected_record_type
  'ContributionProduct'
end
map_attributes(record) click to toggle source
# File lib/my_john_deere_api/model/contribution_product.rb, line 18
def map_attributes(record)
  @market_place_name =            record['marketPlaceName']
  @market_place_description =     record['marketPlaceDescription']
  @default_locale =               record['defaultLocale']
  @current_status =               record['currentStatus']
  @activation_callback =          record['activationCallback']
  @preview_images =               record['previewImages']
  @supported_regions =            record['supportedRegions']
  @supported_operation_centers =  record['supportedOperationCenters']
end