Sha256: 5fd6bbe7555dddc263e12708cf4c307ef9431f461f5896b6b712dba4cda4f0c4
Contents?: true
Size: 566 Bytes
Versions: 7
Compression:
Stored size: 566 Bytes
Contents
module Authenticate # Indicate login attempt was successful. Allows caller to supply a block to login() predicated on success? class Success def success? true end end # Indicate login attempt was a failure, with a message. # Allows caller to supply a block to login() predicated on success? class Failure # The reason the sign in failed. attr_reader :message # @param [String] message The reason the login failed. def initialize(message) @message = message end def success? false end end end
Version data entries
7 entries across 7 versions & 1 rubygems