26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/mbanker/account.rb', line 26
def fetch_details
visit_account_details
extract_label_and_name @crawler.('fieldset:nth-child(2) .content')
@number = @crawler.('fieldset:nth-child(3) .content')
@iban_number = @crawler.('fieldset:nth-child(4) .content')
@bic_number = @crawler.('fieldset:nth-child(5) .content')
@account_type = @crawler.('fieldset:nth-child(6) .content')
@owner = @crawler.('fieldset:nth-child(7) li')
@plenipotentiary = @crawler.('fieldset:nth-child(8) li')
@client_role = @crawler.('fieldset:nth-child(9) .content')
@balance = @crawler.('fieldset:nth-child(10) .amount')
@available_money = @crawler.('fieldset:nth-child(11) .amount')
end
|