lib/eancom/edifact/segments/bgm.rb in eancom-1.6.3 vs lib/eancom/edifact/segments/bgm.rb in eancom-2.0.0
- old
+ new
@@ -6,11 +6,11 @@
attr_reader :segment_type
def initialize(
tag: nil,
- document_name_code: nil,
+ document_name_code:,
code_list_responsible_agency_code: nil,
code_list_identification_code: nil,
document_name: nil,
document_identifier: nil,
message_function_code: nil
@@ -26,20 +26,21 @@
super(tag: tag || TAG)
end
def to_json_hash
{
- document_identifier: @document_identifier
+ document_name_code: @document_name_code,
+ document_identifier: @document_identifier,
+ message_function_code: @message_function_code
}
end
def starts_message?
true
end
def segment_type
TYPE
end
-
end
end
end