lib/money_s3/parsers/doklad.rb in money_s3-0.6.0 vs lib/money_s3/parsers/doklad.rb in money_s3-0.7.0
- old
+ new
@@ -35,12 +35,11 @@
def plneno_dph
at 'PlnenoDPH'
end
- def to_h
- hash = WithAttributes.new({})
- hash.attributes = attributes
+ def to_h_with_attrs
+ hash = HashWithAttributes.new({}, attributes)
hash[:druh] = druh if has? 'Druh'
hash[:cislo] = cislo if has? 'Cislo'
hash[:guid] = guid if has? 'GUID'
hash[:prijat_dokl] = prijat_dokl if has? 'PrijatDokl'
\ No newline at end of file