Sha256: 22faeec131a020ebca67eff7d6d545190ac12afb47f5e01fa5754db081cacdd2
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
module Eancom module Edifact class DGS < Segment TAG = 'DGS'.freeze TYPE = :body attr_reader :segment_type def initialize( tag: nil, hazard_identification_code: ) @tag = tag @hazard_identification_code = hazard_identification_code super(tag: tag || TAG) end def to_json_hash hash = {} hash.merge!(hazard_identification_code: @hazard_identification_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/dgs.rb |