Sha256: 337d124ec0e035c3e58ba4218976e62f4c5bdc4fde166fb9bfa4aa8f243f5a73

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamBankDokl
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.respond_to? :attributes
          data.attributes.each { |k, v| root[k] = v }
        end

        if data.key? :bank_dokl
          data[:bank_dokl].each { |i| root << BankDokl.new('BankDokl', i).builder }
        end

        root
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/builders/seznam_bank_dokl.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_bank_dokl.rb