Sha256: ac1ee211a3a3ad09279844e77a5312c787b04da4facf62820aab4337a250ce98
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
module Eancom module Edifact class CDI < Segment TAG = 'CDI'.freeze TYPE = :body.freeze attr_reader :segment_type def initialize( tag: nil, physical_or_logical_state_type_code_qualifier: nil ) @tag = tag @physical_or_logical_state_type_code_qualifier = physical_or_logical_state_type_code_qualifier super(tag: @tag || TAG) end def to_json_hash hash = {} hash.merge!(physical_or_logical_state_type_code_qualifier: find_identifier(:physical_or_logical_state_type_code_qualifier)) if @physical_or_logical_state_type_code_qualifier 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/cdi.rb |