Sha256: 57ff855be7edb325415900ddd724680e20930cca8d8d9056a8a3b2af0e112f18
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
module Eancom module Edifact class EFI < Segment TAG = 'EFI'.freeze TYPE = :body.freeze attr_reader :segment_type def initialize( tag: nil, file_name: nil, file_format_name:, data_format_description_code: ) @tag = tag @file_name = file_name @file_format_name = file_format_name @data_format_description_code = data_format_description_code super(tag: tag || TAG) end def to_json_hash hash = {} hash.merge!(file_name: file_name) if @file_name hash.merge!(file_format_name: file_format_name) if @file_format_name hash.merge!(data_format_description_code: find_identifier(:data_format_description_code)) if @data_format_description_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/efi.rb |