Sha256: b9f90cbdc56b2c1e327106d3f2a62f12520a6092f5034684cdffeb2af8cabe54
Contents?: true
Size: 926 Bytes
Versions: 2
Compression:
Stored size: 926 Bytes
Contents
module MoneyS3 module Parsers class SouhrnDPHType include ParserCore::BaseParser def zaklad0 at 'Zaklad0' end def zaklad5 at 'Zaklad5' end def zaklad22 at 'Zaklad22' end def dph5 at 'DPH5' end def dph22 at 'DPH22' end def seznam_dalsi_sazby array_of_at(DalsiSazba, ['SeznamDalsiSazby', 'DalsiSazba']) end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:zaklad0] = zaklad0 if has? 'Zaklad0' hash[:zaklad5] = zaklad5 if has? 'Zaklad5' hash[:zaklad22] = zaklad22 if has? 'Zaklad22' hash[:dph5] = dph5 if has? 'DPH5' hash[:dph22] = dph22 if has? 'DPH22' hash[:seznam_dalsi_sazby] = seznam_dalsi_sazby.map(&:to_h_with_attrs) if has? 'SeznamDalsiSazby' 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/souhrn_dph_type.rb |
money_s3-0.11.0 | lib/money_s3/parsers/souhrn_dph_type.rb |