Sha256: 1cc8d4c98dd0d77f498e029a46f46f97fbb54168c9b7042d58c71e8e37eb6088

Contents?: true

Size: 838 Bytes

Versions: 1

Compression:

Stored size: 838 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class VyrobniCisloType
      include BaseBuilder

      def builder
        root = Ox::Element.new(element_name)

        if attributes.key? :vyrobni_cis
          element = Ox::Element.new('VyrobniCis')
          element << attributes[:vyrobni_cis] if attributes[:vyrobni_cis]
          root << element
        end

        if attributes.key? :datum_vyrob
          element = Ox::Element.new('DatumVyrob')
          element << attributes[:datum_vyrob] if attributes[:datum_vyrob]
          root << element
        end

        if attributes.key? :carovy_kod
          element = Ox::Element.new('CarovyKod')
          element << attributes[:carovy_kod] if attributes[:carovy_kod]
          root << element
        end

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/builders/vyrobni_cislo_type.rb