class Eancom::Edifact::UNS

Constants

TAG
TYPE

Public Class Methods

new( tag: nil, section_identification: ) click to toggle source
Calls superclass method Eancom::Edifact::Segment::new
# File lib/eancom/edifact/segments/uns.rb, line 7
def initialize(
  tag: nil,
  section_identification:
)
  @tag = tag
  @section_identification = section_identification

  super(tag: tag || TAG)
end

Public Instance Methods

segment_type() click to toggle source
# File lib/eancom/edifact/segments/uns.rb, line 26
def segment_type
  TYPE
end
to_json_hash() click to toggle source
# 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