Class: Agris::Api::Grain::SpecificCommodityCodeExtract

Inherits:
Object
  • Object
show all
Includes:
XmlModel
Defined in:
lib/agris/api/grain/specific_commodity_code_extract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XmlModel

included

Constructor Details

#initialize(location, code) ⇒ SpecificCommodityCodeExtract

Returns a new instance of SpecificCommodityCodeExtract.



10
11
12
13
# File 'lib/agris/api/grain/specific_commodity_code_extract.rb', line 10

def initialize(location, code)
  @location = location
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



8
9
10
# File 'lib/agris/api/grain/specific_commodity_code_extract.rb', line 8

def code
  @code
end

#locationObject

Returns the value of attribute location.



8
9
10
# File 'lib/agris/api/grain/specific_commodity_code_extract.rb', line 8

def location
  @location
end