Sha256: 08e759543f525ca1d13270be0ae9e8bc5582eaf8b97a9b0fd802f96425787a51
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
module MoneyS3 module Builders class NesklPolozka2 include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end root << build_element('Zkrat', data[:zkrat]) if data.key? :zkrat root << build_element('MJ', data[:mj]) if data.key? :mj root << build_element('UzivCode', data[:uziv_code]) if data.key? :uziv_code root << build_element('Katalog', data[:katalog]) if data.key? :katalog root << build_element('BarCode', data[:bar_code]) if data.key? :bar_code root << build_element('TypZarDoby', data[:typ_zar_doby]) if data.key? :typ_zar_doby root << build_element('ZarDoba', data[:zar_doba]) if data.key? :zar_doba root << build_element('VyrobniCis', data[:vyrobni_cis]) if data.key? :vyrobni_cis root << build_element('DatExp', data[:dat_exp]) if data.key? :dat_exp root << build_element('DatNakupu', data[:dat_nakupu]) if data.key? :dat_nakupu if data.key? :dodavatel root << FirmaType.new('Dodavatel', data[:dodavatel]).builder end root end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/builders/neskl_polozka2.rb |
money_s3-0.11.0 | lib/money_s3/builders/neskl_polozka2.rb |