Class: BankAccountConnectorExternal
Instance Attribute Summary
#auto_submit, #controls, #count
Instance Method Summary
collapse
#confirm_text, #continuation_point, find, #finish, #hidden_field, #iban, #initialize, #password_field, register, #set_balance, #set_balance_as_sum, #set_continuation_point, #t, #text, #text_field, #update_or_create_transaction, #wait_for_app, #wait_with_text
Instance Method Details
#connector_import ⇒ Object
11
12
13
14
15
16
17
|
# File 'app/lib/bank_account_connector_external.rb', line 11
def connector_import
set_balance @connector.balance iban
cp = @connector.transactions iban, continuation_point do |t|
update_or_create_transaction t[:id], map_transaction(t)
end
set_continuation_point cp if cp
end
|
#connector_logout ⇒ Object
19
20
21
|
# File 'app/lib/bank_account_connector_external.rb', line 19
def connector_logout
@connector.logout
end
|
#dump ⇒ Object
7
8
9
|
# File 'app/lib/bank_account_connector_external.rb', line 7
def dump
@connector.dump
end
|
#import(data) ⇒ Object
23
24
25
26
27
28
29
|
# File 'app/lib/bank_account_connector_external.rb', line 23
def import(data)
return false unless connector_login(data)
connector_import
connector_logout
true
end
|
#load(data) ⇒ Object
2
3
4
5
|
# File 'app/lib/bank_account_connector_external.rb', line 2
def load(data)
@connector = create_connector
@connector.load data
end
|