Class: Agris::Api::Grain::NewTicketApplication
- Inherits:
-
Object
- Object
- Agris::Api::Grain::NewTicketApplication
- Includes:
- XmlModel
- Defined in:
- lib/agris/api/grain/new_ticket_application.rb
Constant Summary collapse
- ATTRIBUTE_NAMES =
%w( apply_no apply_type expected_apply_type apply_name_id apply_location apply_reference apply_reference_pricing gross_quantity net_quantity position_quantity apply_date contract_variety_class recalculate_discounts ).freeze
Instance Attribute Summary collapse
-
#record_type ⇒ Object
readonly
Returns the value of attribute record_type.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ NewTicketApplication
constructor
A new instance of NewTicketApplication.
Methods included from XmlModel
Constructor Details
#initialize(hash = {}) ⇒ NewTicketApplication
Returns a new instance of NewTicketApplication.
27 28 29 30 31 |
# File 'lib/agris/api/grain/new_ticket_application.rb', line 27 def initialize(hash = {}) super @record_type = 'GRNT1' end |
Instance Attribute Details
#record_type ⇒ Object (readonly)
Returns the value of attribute record_type.
24 25 26 |
# File 'lib/agris/api/grain/new_ticket_application.rb', line 24 def record_type @record_type end |