Sha256: 915e58e18925d5e85a9e000d627499eb126da895e874e4b74867c79c70a0bcad

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class SkupinaFiremType
      include BaseBuilder

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

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

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

        if attributes.key? :poznamka
          element = Ox::Element.new('Poznamka')
          element << attributes[:poznamka] if attributes[:poznamka]
          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/skupina_firem_type.rb