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