lib/money_s3/parsers/castky.rb in money_s3-0.6.0 vs lib/money_s3/parsers/castky.rb in money_s3-0.7.0
- old
+ new
@@ -59,12 +59,11 @@
def cerp_zuct
at 'CerpZuct'
end
- def to_h
- hash = WithAttributes.new({})
- hash.attributes = attributes
+ def to_h_with_attrs
+ hash = HashWithAttributes.new({}, attributes)
hash[:celkem] = celkem if has? 'Celkem'
hash[:zaklad_0] = zaklad_0 if has? 'Zaklad_0'
hash[:zaklad_1] = zaklad_1 if has? 'Zaklad_1'
hash[:zaklad_2] = zaklad_2 if has? 'Zaklad_2'
\ No newline at end of file