Class: Hbci::Services::AccountsReceiver
- Inherits:
-
Object
- Object
- Hbci::Services::AccountsReceiver
- Defined in:
- lib/hbci/services/accounts_receiver.rb
Instance Attribute Summary collapse
-
#dialog ⇒ Object
readonly
Returns the value of attribute dialog.
Instance Method Summary collapse
-
#initialize(dialog) ⇒ AccountsReceiver
constructor
A new instance of AccountsReceiver.
- #perform ⇒ Object
Constructor Details
#initialize(dialog) ⇒ AccountsReceiver
Returns a new instance of AccountsReceiver.
8 9 10 |
# File 'lib/hbci/services/accounts_receiver.rb', line 8 def initialize(dialog) @dialog = dialog end |
Instance Attribute Details
#dialog ⇒ Object (readonly)
Returns the value of attribute dialog.
6 7 8 |
# File 'lib/hbci/services/accounts_receiver.rb', line 6 def dialog @dialog end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 |
# File 'lib/hbci/services/accounts_receiver.rb', line 12 def perform dialog.response.find('HNVSD').find_all('HIUPD').map do |hiupd| { account_number: hiupd.ktv.number, bank_code: hiupd.ktv.kik_blz } end end |