Sha256: 8a9a3feb97210dd5f3bd08150e1213ef7c45eade0f83c0ced96f0ac6e30c5f54

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/bank_dokl'

module MoneyS3
  module Builders
    class SeznamBankDokl
      include BaseBuilder

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

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