class Authenticate::Failure
Indicate login attempt was a failure, with a message. Allows caller to supply a block to login() predicated on success?
Attributes
message[R]
The reason the sign in failed.
Public Class Methods
new(message)
click to toggle source
@param [String] message The reason the login failed.
# File lib/authenticate/login_status.rb, line 20 def initialize(message) @message = message end
Public Instance Methods
success?()
click to toggle source
# File lib/authenticate/login_status.rb, line 24 def success? false end