Sha256: aeea68d0e26888fe48963c7a65cb9d911f67ac5582cf799135a1d1ba681edd7e

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/prijemka'

module MoneyS3
  module Builders
    class SeznamPrijemka
      include BaseBuilder

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

        if attributes.key? :prijemka
          attributes[:prijemka].each { |i| root << Prijemka.new(i, 'Prijemka').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_prijemka.rb