Class: Agris::Api::Grain::Rates

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from XmlModel

included

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_typeObject (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