Class: Agris::Api::Name::NewFarmField

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

Constant Summary collapse

ATTRIBUTE_NAMES =
%w(
  name_id
  farm_abbreviation
  farm_status
  farm_description
  field_abbreviation
  field_status
  field_description
).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XmlModel

included

Constructor Details

#initialize(hash = {}) ⇒ NewFarmField

Returns a new instance of NewFarmField.



22
23
24
25
26
# File 'lib/agris/api/name/new_farm_field.rb', line 22

def initialize(hash = {})
  super

  @record_type = 'NAMF0'
end

Instance Attribute Details

#record_typeObject (readonly)

Returns the value of attribute record_type.



19
20
21
# File 'lib/agris/api/name/new_farm_field.rb', line 19

def record_type
  @record_type
end

Instance Method Details

#recordsObject



28
29
30
# File 'lib/agris/api/name/new_farm_field.rb', line 28

def records
  [self]
end