Sha256: 0de24a7229005fc497e2536773fd502d5bf26ddb857dc66765990132fde79e1c

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/bank_dokl'

module MoneyS3
  module Parsers
    class SeznamBankDokl
      include BaseParser

      def bank_dokl
        array_of_at(BankDokl, ['BankDokl'])
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:bank_dokl] = bank_dokl.map(&:to_h) if has? 'BankDokl'

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/seznam_bank_dokl.rb