Class: Banker::CreditExpertUK
- Defined in:
- lib/banker/credit_expert_uk.rb
Overview
Constant Summary collapse
- LOGIN_ENDPOINT =
"https://www.creditexpert.co.uk/MCCLogin.aspx"
- FIELDS =
{ username: 'loginUser:txtUsername:ECDTextBox', password: 'loginUser:txtPassword:ECDTextBox', questions: [ 'label span#loginUserMemorableWord_SecurityQuestionLetter1', 'label span#loginUserMemorableWord_SecurityQuestionLetter2' ], answers: [ 'loginUserMemorableWord:SecurityQuestionUK1_SecurityAnswer1_ECDTextBox', 'loginUserMemorableWord:SecurityQuestionUK1_SecurityAnswer2_ECDTextBox' ], score: 'span#MCC_ScoreIntelligence_ScoreIntelligence_Dial1_MyScoreV31_pnlMyScore1_lblMyScore' }
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#memorable_word ⇒ Object
Returns the value of attribute memorable_word.
-
#password ⇒ Object
Returns the value of attribute password.
-
#score ⇒ Object
Returns the value of attribute score.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(args) ⇒ CreditExpertUK
constructor
A new instance of CreditExpertUK.
Methods inherited from Base
#class_name, #cleaner, #get, #memorable_required, #params, #parse_ofx
Constructor Details
#initialize(args) ⇒ CreditExpertUK
Returns a new instance of CreditExpertUK.
34 35 36 37 38 39 40 41 42 |
# File 'lib/banker/credit_expert_uk.rb', line 34 def initialize(args) @keys = %w(username password memorable_word) params(args) @username = args[:username] @password = args[:password] @memorable_word = args[:memorable_word] authenticate end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
16 17 18 |
# File 'lib/banker/credit_expert_uk.rb', line 16 def agent @agent end |
#memorable_word ⇒ Object
Returns the value of attribute memorable_word.
16 17 18 |
# File 'lib/banker/credit_expert_uk.rb', line 16 def memorable_word @memorable_word end |
#password ⇒ Object
Returns the value of attribute password.
16 17 18 |
# File 'lib/banker/credit_expert_uk.rb', line 16 def password @password end |
#score ⇒ Object
Returns the value of attribute score.
16 17 18 |
# File 'lib/banker/credit_expert_uk.rb', line 16 def score @score end |
#username ⇒ Object
Returns the value of attribute username.
16 17 18 |
# File 'lib/banker/credit_expert_uk.rb', line 16 def username @username end |