class Clearance::FailureStatus

Indicates a failure in the {SignInGuard} stack which prevented successful sign in.

Attributes

failure_message[R]

The reason the sign in failed.

Public Class Methods

new(failure_message) click to toggle source

@param [String] failure_message The reason the sign in failed.

# File lib/clearance/session_status.rb, line 17
def initialize(failure_message)
  @failure_message = failure_message
end

Public Instance Methods

success?() click to toggle source

Is false, indicating that the sign in was unsuccessful.

# File lib/clearance/session_status.rb, line 22
def success?
  false
end