Class: MyJohnDeereApi::Model::ContributionProduct

Inherits:
Base
  • Object
show all
Defined in:
lib/my_john_deere_api/model/contribution_product.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #id, #links, #record_type

Instance Method Summary collapse

Methods inherited from Base

#accessor, #initialize

Constructor Details

This class inherits a constructor from MyJohnDeereApi::Model::Base

Instance Attribute Details

#activation_callbackObject (readonly)

Returns the value of attribute activation_callback.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def activation_callback
  @activation_callback
end

#current_statusObject (readonly)

Returns the value of attribute current_status.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def current_status
  @current_status
end

#default_localeObject (readonly)

Returns the value of attribute default_locale.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def default_locale
  @default_locale
end

#market_place_descriptionObject (readonly)

Returns the value of attribute market_place_description.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def market_place_description
  @market_place_description
end

#market_place_nameObject (readonly)

Returns the value of attribute market_place_name.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def market_place_name
  @market_place_name
end

#preview_imagesObject (readonly)

Returns the value of attribute preview_images.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def preview_images
  @preview_images
end

#supported_operation_centersObject (readonly)

Returns the value of attribute supported_operation_centers.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def supported_operation_centers
  @supported_operation_centers
end

#supported_regionsObject (readonly)

Returns the value of attribute supported_regions.



3
4
5
# File 'lib/my_john_deere_api/model/contribution_product.rb', line 3

def supported_regions
  @supported_regions
end

Instance Method Details

#contribution_definitionsObject

contribution definitions associated with this contribution product



11
12
13
14
# 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