Sha256: e4328c11505f319e8a426c7b5e10316f2619afdf1074f02315aa3e7100906a3f
Contents?: true
Size: 1.56 KB
Versions: 7
Compression:
Stored size: 1.56 KB
Contents
module MoneyS3 module Parsers class SouhrnDPHType include ParserCore::BaseParser def zaklad0 at 'Zaklad0' end def zaklad0_attributes attributes_at 'Zaklad0' end def zaklad5 at 'Zaklad5' end def zaklad5_attributes attributes_at 'Zaklad5' end def zaklad22 at 'Zaklad22' end def zaklad22_attributes attributes_at 'Zaklad22' end def dph5 at 'DPH5' end def dph5_attributes attributes_at 'DPH5' end def dph22 at 'DPH22' end def dph22_attributes attributes_at 'DPH22' end def seznam_dalsi_sazby array_of_at(DalsiSazba, ['SeznamDalsiSazby', 'DalsiSazba']) end def to_h hash = {} hash[:attributes] = attributes hash[:zaklad0] = zaklad0 if has? 'Zaklad0' hash[:zaklad0_attributes] = zaklad0_attributes if has? 'Zaklad0' hash[:zaklad5] = zaklad5 if has? 'Zaklad5' hash[:zaklad5_attributes] = zaklad5_attributes if has? 'Zaklad5' hash[:zaklad22] = zaklad22 if has? 'Zaklad22' hash[:zaklad22_attributes] = zaklad22_attributes if has? 'Zaklad22' hash[:dph5] = dph5 if has? 'DPH5' hash[:dph5_attributes] = dph5_attributes if has? 'DPH5' hash[:dph22] = dph22 if has? 'DPH22' hash[:dph22_attributes] = dph22_attributes if has? 'DPH22' hash[:seznam_dalsi_sazby] = seznam_dalsi_sazby.map(&:to_h) if has? 'SeznamDalsiSazby' hash end end end end
Version data entries
7 entries across 7 versions & 1 rubygems