Class: Agris::Api::Grain::Rates
- Inherits:
-
Object
- Object
- Agris::Api::Grain::Rates
- Includes:
- XmlModel
- Defined in:
- lib/agris/api/grain/rates.rb
Constant Summary collapse
- ATTRIBUTE_NAMES =
%w( rate_1 rate_2 rate_3 rate_4 rate_type_1 rate_type_2 rate_type_3 rate_type_4 code_1 code_2 code_3 code_4 table_1 table_2 table_3 table_4 ).freeze
Instance Attribute Summary collapse
-
#record_type ⇒ Object
readonly
Returns the value of attribute record_type.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Rates
constructor
A new instance of Rates.
Methods included from XmlModel
Constructor Details
#initialize(hash = {}) ⇒ Rates
Returns a new instance of Rates.
31 32 33 34 35 |
# File 'lib/agris/api/grain/rates.rb', line 31 def initialize(hash = {}) super @record_type = 'GRNT1R' end |
Instance Attribute Details
#record_type ⇒ Object (readonly)
Returns the value of attribute record_type.
28 29 30 |
# File 'lib/agris/api/grain/rates.rb', line 28 def record_type @record_type end |