Sha256: 83d507aaad73fca7d2af921d250717f587ed270a9b6dca13afc6d7c9389bc6a1

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class ReferenceType
      include BaseBuilder

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

        if attributes.key? :id
          attributes[:id].map { |i| Ox::Element.new('ID') << i }.each { |i| root << i }
        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/reference_type.rb