Sha256: 16acea4d809d06502f7217447336c323d628ff925d5c0a841f81afd9632b62ce
Contents?: true
Size: 988 Bytes
Versions: 2
Compression:
Stored size: 988 Bytes
Contents
module MoneyS3 module Parsers class ZauctovaniDPHDetype include ParserCore::BaseParser def zkrat at 'Zkrat' end def typ at 'Typ' end def popis at 'Popis' end def poh_dss at 'PohDSS' end def poh_dzs at 'PohDZS' end def pozn at 'Pozn' end def seznam_obdobi_dph array_of_at(ObdobiDPH2, ['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[:poh_dss] = poh_dss if has? 'PohDSS' hash[:poh_dzs] = poh_dzs if has? 'PohDZS' 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_detype.rb |
money_s3-0.11.0 | lib/money_s3/parsers/zauctovani_dph_detype.rb |