class Eancom::Edifact::AJT
Constants
- TAG
- TYPE
Attributes
segment_type[R]
Public Class Methods
new( tag: nil, adjustment_reason_description: )
click to toggle source
Calls superclass method
Eancom::Edifact::Segment::new
# File lib/eancom/edifact/segments/ajt.rb, line 9 def initialize( tag: nil, adjustment_reason_description: ) @tag = tag @adjustment_reason_description = adjustment_reason_description super(tag: tag || TAG) end
Public Instance Methods
to_json_hash()
click to toggle source
# File lib/eancom/edifact/segments/ajt.rb, line 19 def to_json_hash hash = {} if @adjustment_reason_description hash.merge!(adjustment_reason_description: find_identifier(:adjustment_reason_description)) end hash end