Sha256: 9cbbe8b50a95c703f6115dc7001795a58d63dcf44af3810e08c7939b255300fe

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

module MoneyS3
  module Builders
    class StavZasobyType
      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('Zasoba', data[:zasoba]) if data.key? :zasoba
        root << build_element('Rezervace', data[:rezervace]) if data.key? :rezervace
        root << build_element('Objednano', data[:objednano]) if data.key? :objednano

        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/stav_zasoby_type.rb
money_s3-0.11.0 lib/money_s3/builders/stav_zasoby_type.rb