Sha256: 554bde3a2b75c497cc2b329a39a3b57c5770a331cbcc1dfb674c9cb7dd02d624

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

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

module MoneyS3
  module Builders
    class SeznamPrijemka
      include BaseBuilder

      attr_accessor :prijemka

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

        if prijemka
          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.4.0 lib/money_s3/builders/seznam_prijemka.rb