Sha256: f9a4ca16bfdc8cc259c65aef21bb39628e319d2673814886e9bde57ca68c7b69
Contents?: true
Size: 1010 Bytes
Versions: 2
Compression:
Stored size: 1010 Bytes
Contents
module MoneyS3 module Parsers class AlternativaPrislusenstviType include ParserCore::BaseParser def popis at 'Popis' end def poc_mj at 'PocMJ' end def poradi at 'Poradi' end def druh_komp at 'DruhKomp' end def symetric at 'Symetric' end def km_karta submodel_at(KmKartaType, 'KmKarta') end def sklad submodel_at(SkladType, 'Sklad') end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:popis] = popis if has? 'Popis' hash[:poc_mj] = poc_mj if has? 'PocMJ' hash[:poradi] = poradi if has? 'Poradi' hash[:druh_komp] = druh_komp if has? 'DruhKomp' hash[:symetric] = symetric if has? 'Symetric' hash[:km_karta] = km_karta.to_h_with_attrs if has? 'KmKarta' hash[:sklad] = sklad.to_h_with_attrs if has? 'Sklad' 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/alternativa_prislusenstvi_type.rb |
money_s3-0.11.0 | lib/money_s3/parsers/alternativa_prislusenstvi_type.rb |