Class: Agris::Api::Name::NewFarmField
- Inherits:
-
Object
- Object
- Agris::Api::Name::NewFarmField
- 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
-
#record_type ⇒ Object
readonly
Returns the value of attribute record_type.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ NewFarmField
constructor
A new instance of NewFarmField.
- #records ⇒ Object
Methods included from XmlModel
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_type ⇒ Object (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
#records ⇒ Object
28 29 30 |
# File 'lib/agris/api/name/new_farm_field.rb', line 28 def records [self] end |