Sha256: 01ac3683814216f59f61c14be0d1c4b3582d23993c29fe114eec83564996d6c2

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class VyrobniCisloType
      include 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('VyrobniCis', data[:vyrobni_cis]) if data.key? :vyrobni_cis
        root << build_element('DatumVyrob', data[:datum_vyrob]) if data.key? :datum_vyrob
        root << build_element('CarovyKod', data[:carovy_kod]) if data.key? :carovy_kod

        root
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/builders/vyrobni_cislo_type.rb
money_s3-0.9.0 lib/money_s3/builders/vyrobni_cislo_type.rb
money_s3-0.8.0 lib/money_s3/builders/vyrobni_cislo_type.rb
money_s3-0.7.0 lib/money_s3/builders/vyrobni_cislo_type.rb
money_s3-0.6.0 lib/money_s3/builders/vyrobni_cislo_type.rb