Sha256: 419ed01386ca404af43c676f7aef26dd1b2916307a7b9c0c9c427523004e896c
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
module MoneyS3 module Parsers class ValutyUhr include ParserCore::BaseParser def mena submodel_at(MenaType, 'Mena') end def castka at 'Castka' end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:mena] = mena.to_h_with_attrs if has? 'Mena' hash[:castka] = castka if has? 'Castka' 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/valuty_uhr.rb |
money_s3-0.11.0 | lib/money_s3/parsers/valuty_uhr.rb |