Sha256: cead188154ff636ea6f6f01d8070b5151b5339f4ac8f6dd6d0b2cb25e86ab6e1

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/zasoba'

module MoneyS3
  module Builders
    class SeznamZasoba
      include BaseBuilder

      attr_accessor :zasoba

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

        if zasoba
          zasoba.each { |i| root << Zasoba.new(i, 'Zasoba').builder }
        end

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/builders/seznam_zasoba.rb