Sha256: c59695f9b89f52ed48f0faff60d6b541f80a8b5d21c9f399111d67cb56330286

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/dl_prij'

module MoneyS3
  module Builders
    class SeznamDLPrij
      include BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.respond_to? :attributes
          data.attributes.each { |k, v| root[k] = v }
        end

        if data.key? :dl_prij
          data[:dl_prij].each { |i| root << DLPrij.new('DLPrij', i).builder }
        end

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