Sha256: 27745f7b132b5d0f11633319f7c208270c8b81b1da753f029e94ac89937467c3
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
module MoneyS3 module Builders class DodavkaType 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('Oznaceni', data[:oznaceni]) if data.key? :oznaceni root << build_element('DatExp', data[:dat_exp]) if data.key? :dat_exp root << build_element('PocetMJ', data[:pocet_mj]) if data.key? :pocet_mj root << build_element('Cena', data[:cena]) if data.key? :cena 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/dodavka_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/dodavka_type.rb |