class Eancom::Edifact::TRU

Constants

TAG
TYPE

Attributes

segment_type[R]

Public Class Methods

new( tag: nil, object_identifier: ) click to toggle source
Calls superclass method Eancom::Edifact::Segment::new
# File lib/eancom/edifact/segments/tru.rb, line 9
def initialize(
  tag: nil,
  object_identifier:
)

  @tag = tag
  @object_identifier = object_identifier

  super(tag: tag || TAG)
end

Public Instance Methods

to_json_hash() click to toggle source
# File lib/eancom/edifact/segments/tru.rb, line 20
def to_json_hash
  hash = {}
  hash.merge!(object_identifier: @object_identifier)
  hash
end