Sha256: ffece3967c9fe4d142d75f1ce95fb3c1cc12c0f473f89f285167547eb6089338

Contents?: true

Size: 352 Bytes

Versions: 7

Compression:

Stored size: 352 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamBankDokl
      include ParserCore::BaseParser

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

      def to_h
        hash = {}
        hash[:attributes] = attributes

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

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/seznam_bank_dokl.rb
money_s3-2.4.0 lib/money_s3/parsers/seznam_bank_dokl.rb
money_s3-2.3.0 lib/money_s3/parsers/seznam_bank_dokl.rb
money_s3-2.2.0 lib/money_s3/parsers/seznam_bank_dokl.rb
money_s3-2.1.0 lib/money_s3/parsers/seznam_bank_dokl.rb
money_s3-2.0.0 lib/money_s3/parsers/seznam_bank_dokl.rb
money_s3-1.0.0 lib/money_s3/parsers/seznam_bank_dokl.rb