Class: MoneyS3::Parsers::SeznamBankDokl

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/seznam_bank_dokl.rb

Instance Method Summary collapse

Instance Method Details

#bank_doklObject



6
7
8
# File 'lib/money_s3/parsers/seznam_bank_dokl.rb', line 6

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

#to_hObject



10
11
12
13
14
15
16
17
# File 'lib/money_s3/parsers/seznam_bank_dokl.rb', line 10

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

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

  hash
end