Class: Eancom::Edifact::UNT
- Defined in:
- lib/eancom/edifact/segments/unt.rb
Constant Summary collapse
- TAG =
'UNT'.freeze
- TYPE =
:footer.freeze
Instance Attribute Summary
Attributes inherited from Segment
Instance Method Summary collapse
-
#initialize(tag: nil, number_of_segments_in_message:, message_reference_number:) ⇒ UNT
constructor
A new instance of UNT.
- #segment_type ⇒ Object
- #to_json_hash ⇒ Object
Methods inherited from Segment
#array, #group_name, initialize_by_components, #is_body?, #is_footer?, #is_header?, #item_group_name, #starts_item?, #starts_location?, #starts_message?, #structure, #tag?, #to_edi, #to_hash, #to_s, #validate_structure
Constructor Details
#initialize(tag: nil, number_of_segments_in_message:, message_reference_number:) ⇒ UNT
Returns a new instance of UNT.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/eancom/edifact/segments/unt.rb', line 7 def initialize( tag: nil, number_of_segments_in_message:, message_reference_number: ) @tag = tag = = super(tag: tag || TAG) end |
Instance Method Details
#segment_type ⇒ Object
22 23 24 |
# File 'lib/eancom/edifact/segments/unt.rb', line 22 def segment_type TYPE end |
#to_json_hash ⇒ Object
18 19 20 |
# File 'lib/eancom/edifact/segments/unt.rb', line 18 def to_json_hash {} end |