Class: Eancom::Edifact::RFF
- Defined in:
- lib/eancom/edifact/segments/rff.rb
Constant Summary collapse
- TAG =
'RFF'.freeze
- TYPE =
:body.freeze
Instance Attribute Summary
Attributes inherited from Segment
Instance Method Summary collapse
-
#initialize(tag: nil, reference_code_qualifier:, reference_identifier: nil, document_line_identifier: nil) ⇒ RFF
constructor
A new instance of RFF.
- #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, reference_code_qualifier:, reference_identifier: nil, document_line_identifier: nil) ⇒ RFF
Returns a new instance of RFF.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/eancom/edifact/segments/rff.rb', line 7 def initialize( tag: nil, reference_code_qualifier:, reference_identifier: nil, document_line_identifier: nil ) @tag = tag @reference_code_qualifier = reference_code_qualifier @reference_identifier = reference_identifier @document_line_identifier = document_line_identifier super(tag: @tag || TAG) end |
Instance Method Details
#segment_type ⇒ Object
29 30 31 |
# File 'lib/eancom/edifact/segments/rff.rb', line 29 def segment_type TYPE end |
#to_json_hash ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/eancom/edifact/segments/rff.rb', line 21 def to_json_hash { identifier => { reference_identifier: @reference_identifier } } end |