Module: Natwest::Login
- Included in:
- Account
- Defined in:
- lib/natwest.rb
Instance Attribute Summary collapse
-
#customer_number ⇒ Object
Returns the value of attribute customer_number.
-
#password ⇒ Object
Returns the value of attribute password.
-
#pin ⇒ Object
Returns the value of attribute pin.
-
#ua ⇒ Object
readonly
Returns the value of attribute ua.
Instance Method Summary collapse
Instance Attribute Details
#customer_number ⇒ Object
Returns the value of attribute customer_number.
15 16 17 |
# File 'lib/natwest.rb', line 15 def customer_number @customer_number end |
#password ⇒ Object
Returns the value of attribute password.
15 16 17 |
# File 'lib/natwest.rb', line 15 def password @password end |
#pin ⇒ Object
Returns the value of attribute pin.
14 15 16 |
# File 'lib/natwest.rb', line 14 def pin @pin end |
#ua ⇒ Object (readonly)
Returns the value of attribute ua.
14 15 16 |
# File 'lib/natwest.rb', line 14 def ua @ua end |
Instance Method Details
#logged_in? ⇒ Boolean
17 18 19 |
# File 'lib/natwest.rb', line 17 def logged_in? @logged_in ||= false end |
#login(credentials) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/natwest.rb', line 21 def login(credentials) credentials.each_pair{|name, value| send("#{name}=".to_sym, value)} enter_customer_number enter_pin_and_password confirm_last_login @logged_in = true end |