Sha256: eff81b0f6a64ee006a7fc74fa030f4ae5f0f483a53f6d0a286305ca88954518e

Contents?: true

Size: 533 Bytes

Versions: 6

Compression:

Stored size: 533 Bytes

Contents

module MoneyS3
  module Builders
    class MenaType
      include ParserCore::BaseBuilder

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

        root << build_element('Kod', data[:kod], data[:kod_attributes]) if data.key? :kod
        root << build_element('Mnozstvi', data[:mnozstvi], data[:mnozstvi_attributes]) if data.key? :mnozstvi
        root << build_element('Kurs', data[:kurs], data[:kurs_attributes]) if data.key? :kurs

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