Sha256: 4b9c7f64a3d9f562645845c9609a809be68e420ef4a58b2454e3891d89f5c541

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/vydejka'

module MoneyS3
  module Builders
    class SeznamVydejka
      include BaseBuilder

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

        if attributes.key? :vydejka
          attributes[:vydejka].each { |i| root << Vydejka.new(i, 'Vydejka').builder }
        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/seznam_vydejka.rb