Sha256: 903156533ebd66c5b08765dee810f1d4c1667f753a94bd288fef9b61438675ff
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
require 'money_s3/builders/base_builder' module MoneyS3 module Builders class DodavkaType include BaseBuilder def builder root = Ox::Element.new(element_name) if attributes.key? :oznaceni element = Ox::Element.new('Oznaceni') element << attributes[:oznaceni] if attributes[:oznaceni] root << element end if attributes.key? :dat_exp element = Ox::Element.new('DatExp') element << attributes[:dat_exp] if attributes[:dat_exp] root << element end if attributes.key? :pocet_mj element = Ox::Element.new('PocetMJ') element << attributes[:pocet_mj] if attributes[:pocet_mj] root << element end if attributes.key? :cena element = Ox::Element.new('Cena') element << attributes[:cena] if attributes[:cena] root << element end root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.5.0 | lib/money_s3/builders/dodavka_type.rb |