Sha256: ef886d1fbf96cec80456c34aa31f87952f79393aa5cb552d021db0252cdaffde
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
module MoneyS3 module Parsers class NesklPolozka2 include ParserCore::BaseParser def zkrat at 'Zkrat' end def mj at 'MJ' end def uziv_code at 'UzivCode' end def katalog at 'Katalog' end def bar_code at 'BarCode' end def typ_zar_doby at 'TypZarDoby' end def zar_doba at 'ZarDoba' end def vyrobni_cis at 'VyrobniCis' end def dat_exp at 'DatExp' end def dat_nakupu at 'DatNakupu' end def dodavatel submodel_at(FirmaType, 'Dodavatel') end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:zkrat] = zkrat if has? 'Zkrat' hash[:mj] = mj if has? 'MJ' hash[:uziv_code] = uziv_code if has? 'UzivCode' hash[:katalog] = katalog if has? 'Katalog' hash[:bar_code] = bar_code if has? 'BarCode' hash[:typ_zar_doby] = typ_zar_doby if has? 'TypZarDoby' hash[:zar_doba] = zar_doba if has? 'ZarDoba' hash[:vyrobni_cis] = vyrobni_cis if has? 'VyrobniCis' hash[:dat_exp] = dat_exp if has? 'DatExp' hash[:dat_nakupu] = dat_nakupu if has? 'DatNakupu' hash[:dodavatel] = dodavatel.to_h_with_attrs if has? 'Dodavatel' 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/neskl_polozka2.rb |
money_s3-0.11.0 | lib/money_s3/parsers/neskl_polozka2.rb |