Sha256: be13d7d3b8eecfa140f0a8c34ae6364fd62f005679895cd45b5b7cc280429507

Contents?: true

Size: 575 Bytes

Versions: 6

Compression:

Stored size: 575 Bytes

Contents

module MoneyS3
  module Builders
    class StavZasobyType
      include ParserCore::BaseBuilder

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

        root << build_element('Zasoba', data[:zasoba], data[:zasoba_attributes]) if data.key? :zasoba
        root << build_element('Rezervace', data[:rezervace], data[:rezervace_attributes]) if data.key? :rezervace
        root << build_element('Objednano', data[:objednano], data[:objednano_attributes]) if data.key? :objednano

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