Sha256: 0a0c9c4633f1df908ab7bc8fc0e2a33c977f93ac4fb04afa95714ceeb4c1e6d0
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
module MoneyS3 module Parsers class ZauctovaniDPHType include ParserCore::BaseParser def zkrat at 'Zkrat' end def typ at 'Typ' end def popis at 'Popis' end def sd_uc_md at 'SDUcMD' end def sd_uc_d at 'SDUcD' end def zd_uc_md at 'ZDUcMD' end def zd_uc_d at 'ZDUcD' end def pozn at 'Pozn' end def seznam_obdobi_dph array_of_at(ObdobiDPH, ['SeznamObdobiDPH', 'ObdobiDPH']) end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:zkrat] = zkrat if has? 'Zkrat' hash[:typ] = typ if has? 'Typ' hash[:popis] = popis if has? 'Popis' hash[:sd_uc_md] = sd_uc_md if has? 'SDUcMD' hash[:sd_uc_d] = sd_uc_d if has? 'SDUcD' hash[:zd_uc_md] = zd_uc_md if has? 'ZDUcMD' hash[:zd_uc_d] = zd_uc_d if has? 'ZDUcD' hash[:pozn] = pozn if has? 'Pozn' hash[:seznam_obdobi_dph] = seznam_obdobi_dph.map(&:to_h_with_attrs) if has? 'SeznamObdobiDPH' 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/zauctovani_dph_type.rb |
money_s3-0.11.0 | lib/money_s3/parsers/zauctovani_dph_type.rb |