Sha256: 1420138dd2ae1c01084b2cadde437aec8714e446aa9c68e32cf509b82c39d6bc
Contents?: true
Size: 595 Bytes
Versions: 2
Compression:
Stored size: 595 Bytes
Contents
module MoneyS3 module Parsers class Valuty2 include ParserCore::BaseParser def mena submodel_at(MenaType, 'Mena') end def souhrn_dph submodel_at(SouhrnDPHType, 'SouhrnDPH') end def celkem at 'Celkem' end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:mena] = mena.to_h_with_attrs if has? 'Mena' hash[:souhrn_dph] = souhrn_dph.to_h_with_attrs if has? 'SouhrnDPH' hash[:celkem] = celkem if has? 'Celkem' hash end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/parsers/valuty2.rb |
money_s3-0.11.0 | lib/money_s3/parsers/valuty2.rb |