Sha256: 6aefd59652e0f1de5b9998d826c889c6a0a099c3d6fb4a1b8847a697398e9a9f

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class MenaType
      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('Kod', data[:kod]) if data.key? :kod
        root << build_element('Mnozstvi', data[:mnozstvi]) if data.key? :mnozstvi
        root << build_element('Kurs', data[:kurs]) if data.key? :kurs

        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/mena_type.rb
money_s3-0.9.0 lib/money_s3/builders/mena_type.rb
money_s3-0.8.0 lib/money_s3/builders/mena_type.rb
money_s3-0.7.0 lib/money_s3/builders/mena_type.rb
money_s3-0.6.0 lib/money_s3/builders/mena_type.rb