Class: Rspayd::CzechBankAccountNumberParser

Inherits:
Object
  • Object
show all
Defined in:
lib/rspayd/czech_bank_account_number_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bank_account_number) ⇒ CzechBankAccountNumberParser

Returns a new instance of CzechBankAccountNumberParser.



8
9
10
# File 'lib/rspayd/czech_bank_account_number_parser.rb', line 8

def initialize()
  @bank_account_number = 
end

Instance Attribute Details

#bank_account_numberObject (readonly)

Returns the value of attribute bank_account_number.



6
7
8
# File 'lib/rspayd/czech_bank_account_number_parser.rb', line 6

def 
  @bank_account_number
end

Instance Method Details

#account_numberObject



24
25
26
# File 'lib/rspayd/czech_bank_account_number_parser.rb', line 24

def 
  [0].strip
end

#account_prefixObject



16
17
18
19
20
21
22
# File 'lib/rspayd/czech_bank_account_number_parser.rb', line 16

def 
  if [1]
    [1].strip
  else
    nil
  end
end

#bank_codeObject



12
13
14
# File 'lib/rspayd/czech_bank_account_number_parser.rb', line 12

def bank_code
  [1].strip
end