Class: Authenticate::Failure
- Inherits:
-
Object
- Object
- Authenticate::Failure
- Defined in:
- lib/authenticate/login_status.rb
Overview
Indicate login attempt was a failure, with a message. Allows caller to supply a block to login() predicated on success?
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
The reason the sign in failed.
Instance Method Summary collapse
-
#initialize(message) ⇒ Failure
constructor
A new instance of Failure.
- #success? ⇒ Boolean
Constructor Details
#initialize(message) ⇒ Failure
Returns a new instance of Failure.
20 21 22 |
# File 'lib/authenticate/login_status.rb', line 20 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
The reason the sign in failed.
17 18 19 |
# File 'lib/authenticate/login_status.rb', line 17 def @message end |
Instance Method Details
#success? ⇒ Boolean
24 25 26 |
# File 'lib/authenticate/login_status.rb', line 24 def success? false end |