Sha256: 360ee189c5b085db7607fb4990cdfe395b0e63ec3cb4778800b2576d722433c1

Contents?: true

Size: 660 Bytes

Versions: 6

Compression:

Stored size: 660 Bytes

Contents

module MoneyS3
  module Builders
    class DodavkaType
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        root << build_element('Oznaceni', data[:oznaceni], data[:oznaceni_attributes]) if data.key? :oznaceni
        root << build_element('DatExp', data[:dat_exp], data[:dat_exp_attributes]) if data.key? :dat_exp
        root << build_element('PocetMJ', data[:pocet_mj], data[:pocet_mj_attributes]) if data.key? :pocet_mj
        root << build_element('Cena', data[:cena], data[:cena_attributes]) if data.key? :cena

        root
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/dodavka_type.rb
money_s3-2.4.0 lib/money_s3/builders/dodavka_type.rb
money_s3-2.3.0 lib/money_s3/builders/dodavka_type.rb
money_s3-2.2.0 lib/money_s3/builders/dodavka_type.rb
money_s3-2.1.0 lib/money_s3/builders/dodavka_type.rb
money_s3-2.0.0 lib/money_s3/builders/dodavka_type.rb