Sha256: e978fc560e2d3734602ada64150ef0f3590ce59075ffbefdfa0869282f6155bd

Contents?: true

Size: 954 Bytes

Versions: 6

Compression:

Stored size: 954 Bytes

Contents

module MoneyS3
  module Builders
    class CenovaHladinaType
      include ParserCore::BaseBuilder

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

        root << build_element('Zkrat', data[:zkrat], data[:zkrat_attributes]) if data.key? :zkrat
        root << build_element('Nazev', data[:nazev], data[:nazev_attributes]) if data.key? :nazev
        root << build_element('Pozn', data[:pozn], data[:pozn_attributes]) if data.key? :pozn
        if data.key? :mena
          root << MenaType.new('Mena', data[:mena]).builder
        end
        root << build_element('Skup', data[:skup], data[:skup_attributes]) if data.key? :skup
        root << build_element('Ceny', data[:ceny], data[:ceny_attributes]) if data.key? :ceny
        if data.key? :definice_ceny
          root << DefiniceCeny.new('definiceCeny', data[:definice_ceny]).builder
        end

        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/cenova_hladina_type.rb
money_s3-2.4.0 lib/money_s3/builders/cenova_hladina_type.rb
money_s3-2.3.0 lib/money_s3/builders/cenova_hladina_type.rb
money_s3-2.2.0 lib/money_s3/builders/cenova_hladina_type.rb
money_s3-2.1.0 lib/money_s3/builders/cenova_hladina_type.rb
money_s3-2.0.0 lib/money_s3/builders/cenova_hladina_type.rb