Sha256: 2a56669b209690b2b897ad8b0dde2737ff57c357fec60e11f88b2faa8ce64ea2
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/mena_type' require 'money_s3/parsers/souhrn_dph_type' module MoneyS3 module Parsers class Valuty include BaseParser def celkem at 'Celkem' end def mena submodel_at(MenaType, 'Mena') end def souhrn_dph submodel_at(SouhrnDPHType, 'SouhrnDPH') end def to_h_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:celkem] = celkem if has? 'Celkem' hash[:mena] = mena.to_h_with_attrs if has? 'Mena' hash[:souhrn_dph] = souhrn_dph.to_h_with_attrs if has? 'SouhrnDPH' hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.10.0 | lib/money_s3/parsers/valuty.rb |
money_s3-0.9.0 | lib/money_s3/parsers/valuty.rb |
money_s3-0.8.0 | lib/money_s3/parsers/valuty.rb |
money_s3-0.7.0 | lib/money_s3/parsers/valuty.rb |