Sha256: bbf785e3f010ba74151f29cec92075cb3177516ca0c2f47e631ee6d861a260fe
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 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 hash = WithAttributes.new({}) hash.attributes = attributes hash[:celkem] = celkem if has? 'Celkem' hash[:mena] = mena.to_h if has? 'Mena' hash[:souhrn_dph] = souhrn_dph.to_h if has? 'SouhrnDPH' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.6.0 | lib/money_s3/parsers/valuty.rb |