Class: Agris::Api::Grain::SpecificCommodityCodeExtract
- Inherits:
-
Object
- Object
- Agris::Api::Grain::SpecificCommodityCodeExtract
- Includes:
- XmlModel
- Defined in:
- lib/agris/api/grain/specific_commodity_code_extract.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(location, code) ⇒ SpecificCommodityCodeExtract
constructor
A new instance of SpecificCommodityCodeExtract.
Methods included from XmlModel
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
#code ⇒ Object
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 |
#location ⇒ Object
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 |