Class: Eancom::Edifact::UNS
- Defined in:
- lib/eancom/edifact/segments/uns.rb
Constant Summary collapse
- TAG =
'UNS'.freeze
- TYPE =
:header.freeze
Instance Attribute Summary
Attributes inherited from Segment
Instance Method Summary collapse
-
#initialize(tag: nil, section_identification:) ⇒ UNS
constructor
A new instance of UNS.
- #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_message?, #structure, #tag?, #to_edi, #to_hash, #to_s, #validate_structure
Constructor Details
Instance Method Details
#segment_type ⇒ Object
26 27 28 |
# File 'lib/eancom/edifact/segments/uns.rb', line 26 def segment_type TYPE end |
#to_json_hash ⇒ Object
20 21 22 23 24 |
# File 'lib/eancom/edifact/segments/uns.rb', line 20 def to_json_hash hash = {} # hash.merge!(section_identification: find_identifier(:section_identification)) if @section_identification hash end |