Sha256: 99dad270323d653d8359c1e78d1ca2f91bdcbca1962bc3b526f175c1b959ec43
Contents?: true
Size: 666 Bytes
Versions: 32
Compression:
Stored size: 666 Bytes
Contents
module Clearance # Indicates a user was successfully signed in, passing all {SignInGuard}s. class SuccessStatus # Is true, indicating that the sign in was successful. def success? true end end # Indicates a failure in the {SignInGuard} stack which prevented successful # sign in. class FailureStatus # The reason the sign in failed. attr_reader :failure_message # @param [String] failure_message The reason the sign in failed. def initialize(failure_message) @failure_message = failure_message end # Is false, indicating that the sign in was unsuccessful. def success? false end end end
Version data entries
32 entries across 32 versions & 1 rubygems