Sha256: 7b721224bdec2056deb21091c04967d42672c1177e7c35219e979507d414ff82
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
module Eancom module Edifact class CTA < Segment TAG = 'CTA'.freeze TYPE = :body attr_reader :segment_type def initialize( tag: nil, contact_function_code: ) @tag = tag @contact_function_code = contact_function_code super(tag: tag || TAG) end def to_json_hash hash = {} hash.merge!(contact_function_code: find_identifier(:contact_function_code)) if @contact_function_code hash end def segment_type TYPE end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eancom-2.0.0 | lib/eancom/edifact/segments/cta.rb |