lib/money_s3/parsers/reference.rb in money_s3-0.6.0 vs lib/money_s3/parsers/reference.rb in money_s3-0.7.0
- old
+ new
@@ -13,15 +13,14 @@
def vzor
submodel_at(VzorKomponentaType, 'Vzor')
end
- def to_h
- hash = WithAttributes.new({})
- hash.attributes = attributes
+ def to_h_with_attrs
+ hash = HashWithAttributes.new({}, attributes)
- hash[:typ_kusovnik] = typ_kusovnik.to_h if has? 'TypKusovnik'
- hash[:vzor] = vzor.to_h if has? 'Vzor'
+ hash[:typ_kusovnik] = typ_kusovnik.to_h_with_attrs if has? 'TypKusovnik'
+ hash[:vzor] = vzor.to_h_with_attrs if has? 'Vzor'
hash
end
end
end
\ No newline at end of file