Class: Eancom::Edifact::TRU
- Defined in:
- lib/eancom/edifact/segments/tru.rb
Constant Summary collapse
- TAG =
'TRU'.freeze
- TYPE =
:body
Instance Attribute Summary collapse
-
#segment_type ⇒ Object
readonly
Returns the value of attribute segment_type.
Attributes inherited from Segment
Instance Method Summary collapse
-
#initialize(tag: nil, object_identifier:) ⇒ TRU
constructor
A new instance of TRU.
- #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 Attribute Details
#segment_type ⇒ Object (readonly)
Returns the value of attribute segment_type.
7 8 9 |
# File 'lib/eancom/edifact/segments/tru.rb', line 7 def segment_type @segment_type end |
Instance Method Details
#to_json_hash ⇒ Object
20 21 22 23 24 |
# File 'lib/eancom/edifact/segments/tru.rb', line 20 def to_json_hash hash = {} hash.merge!(object_identifier: @object_identifier) hash end |