Sha256: 46d6a895fe0b5d6de29220ca3f68cbf64d30bbbb2bf462e2d8ebf6d5bd181a46
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
module Eancom module Edifact class UNH < Segment TAG = 'UNH'.freeze TYPE = :header.freeze def initialize( tag: nil, message_reference_number:, message_type:, message_version_number:, message_release_number:, controlling_agency:, association_assigned_code:, code_list_directory_version_number: nil ) @tag = tag @message_reference_number = message_reference_number @message_type = message_type @message_version_number = message_version_number @message_release_number = message_release_number @controlling_agency = controlling_agency @association_assigned_code = association_assigned_code @code_list_directory_version_number = code_list_directory_version_number super(tag: tag || TAG) end ''' Changing this to_json_hash function throws unusualy many errors. Discuss whether or not this hash function needs to be changed. ''' def to_json_hash hash = { message_reference_number: @message_reference_number, message_type: @message_type, message_version_number: @message_version_number, message_release_number: @message_release_number, controlling_agency: @controlling_agency, association_assigned_code: @association_assigned_code } 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/unh.rb |