lib/money_s3/parsers/valuty2.rb in money_s3-0.12.0 vs lib/money_s3/parsers/valuty2.rb in money_s3-1.0.0

- old
+ new

@@ -13,15 +13,21 @@ def celkem at 'Celkem' end - def to_h_with_attrs - hash = ParserCore::HashWithAttributes.new({}, attributes) + def celkem_attributes + attributes_at 'Celkem' + end - hash[:mena] = mena.to_h_with_attrs if has? 'Mena' - hash[:souhrn_dph] = souhrn_dph.to_h_with_attrs if has? 'SouhrnDPH' + def to_h + hash = {} + hash[:attributes] = attributes + + hash[:mena] = mena.to_h if has? 'Mena' + hash[:souhrn_dph] = souhrn_dph.to_h if has? 'SouhrnDPH' hash[:celkem] = celkem if has? 'Celkem' + hash[:celkem_attributes] = celkem_attributes if has? 'Celkem' hash end end end \ No newline at end of file