Class: Clearance::FailureStatus
- Inherits:
-
Object
- Object
- Clearance::FailureStatus
- Defined in:
- lib/clearance/session_status.rb
Overview
Indicates a failure in the SignInGuard stack which prevented successful sign in.
Instance Attribute Summary collapse
-
#failure_message ⇒ Object
readonly
The reason the sign in failed.
Instance Method Summary collapse
-
#initialize(failure_message) ⇒ FailureStatus
constructor
A new instance of FailureStatus.
-
#success? ⇒ Boolean
Is false, indicating that the sign in was unsuccessful.
Constructor Details
#initialize(failure_message) ⇒ FailureStatus
Returns a new instance of FailureStatus.
17 18 19 |
# File 'lib/clearance/session_status.rb', line 17 def initialize() @failure_message = end |
Instance Attribute Details
#failure_message ⇒ Object (readonly)
The reason the sign in failed.
14 15 16 |
# File 'lib/clearance/session_status.rb', line 14 def @failure_message end |
Instance Method Details
#success? ⇒ Boolean
Is false, indicating that the sign in was unsuccessful.
22 23 24 |
# File 'lib/clearance/session_status.rb', line 22 def success? false end |