Class: Banker::LloydsTSBUK

Inherits:
Base
  • Object
show all
Defined in:
lib/banker/lloyds_tsb_uk.rb

Constant Summary collapse

LOGIN_URL =
"https://online.lloydstsb.co.uk/personal/logon/login.jsp"
COLLECT_URL =
"https://secure2.lloydstsb.co.uk/personal/a/account_overview_personal/"
FIELD =
{
  username: 'frmLogin:strCustomerLogin_userID',
  password: 'frmLogin:strCustomerLogin_pwd',
  memorable_word: [
    'frmentermemorableinformation1:strEnterMemorableInformation_memInfo1',
    'frmentermemorableinformation1:strEnterMemorableInformation_memInfo2',
    'frmentermemorableinformation1:strEnterMemorableInformation_memInfo3'
  ]
}

Instance Attribute Summary collapse

Attributes inherited from Base

#agent, #keys

Instance Method Summary collapse

Methods inherited from Base

#class_name, #cleaner, #get, #get_letter, #memorable_required, #params, #parse_ofx

Constructor Details

#initialize(args = {}) ⇒ LloydsTSBUK

Returns a new instance of LloydsTSBUK.



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/banker/lloyds_tsb_uk.rb', line 19

def initialize(args={})
  @keys = %w(username password memorable_word)

  params(args)
  @username = args.delete(:username)
  @password = args.delete(:password)
  @memorable_word = args.delete(:memorable_word)

  @accounts = []

  authenticate!
  delivery!
end

Instance Attribute Details

#accountsObject

Returns the value of attribute accounts.



7
8
9
# File 'lib/banker/lloyds_tsb_uk.rb', line 7

def accounts
  @accounts
end