lib/eancom/edifact/segments/pac.rb in eancom-1.6.3 vs lib/eancom/edifact/segments/pac.rb in eancom-2.0.0
- old
+ new
@@ -41,10 +41,12 @@
super(tag: tag || TAG)
end
def to_json_hash
- {}
+ hash = {}
+ hash.merge!(package_quantity: @package_quantity) if @package_quantity
+ hash
end
def segment_type
TYPE
end