Class: Agris::Api::Grain::NewTicketApplication

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

Instance Method Summary collapse

Methods included from XmlModel

included

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