class Agris::Api::Grain::NewTicket
Constants
- ATTRIBUTE_NAMES
Attributes
record_type[R]
Public Class Methods
new(hash = {})
click to toggle source
Calls superclass method
# File lib/agris/api/grain/new_ticket.rb, line 80 def initialize(hash = {}) super @record_type = 'GRNT0' end
Public Instance Methods
add_application(application)
click to toggle source
# File lib/agris/api/grain/new_ticket.rb, line 86 def add_application(application) @applications ||= [] @applications << application self end
add_remark(remark)
click to toggle source
# File lib/agris/api/grain/new_ticket.rb, line 93 def add_remark(remark) @remarks ||= [] @remarks << remark self end
applications()
click to toggle source
# File lib/agris/api/grain/new_ticket.rb, line 100 def applications @applications || [] end
records()
click to toggle source
# File lib/agris/api/grain/new_ticket.rb, line 104 def records [self] + applications + remarks end
remarks()
click to toggle source
# File lib/agris/api/grain/new_ticket.rb, line 108 def remarks @remarks || [] end
xml_ignore_attributes()
click to toggle source
# File lib/agris/api/grain/new_ticket.rb, line 112 def xml_ignore_attributes %i(applications remarks) end