Sha256: 3c38a60ecd4aad252dcaf88689dbe248e2e60d4168cca57fab55d757c5d516f6
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/km_karta_type' require 'money_s3/parsers/sklad_type' module MoneyS3 module Parsers class AlternativaPrislusenstviType include 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 hash = WithAttributes.new({}) hash.attributes = 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 if has? 'KmKarta' hash[:sklad] = sklad.to_h if has? 'Sklad' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.6.0 | lib/money_s3/parsers/alternativa_prislusenstvi_type.rb |