Sha256: 36e470b12c47dbeb9c5682c136294eea399f595a72bca2a7ab09317bbf78c6b0
Contents?: true
Size: 452 Bytes
Versions: 24
Compression:
Stored size: 452 Bytes
Contents
module Castronaut class AuthenticationResult attr_reader :username, :error_message def initialize(username, error_message=nil) @username = username @error_message = error_message Castronaut.logger.info("#{self.class} - #{@error_message} for #{@username}") if @error_message && @username end def valid? error_message.nil? end def invalid? !valid? end end end
Version data entries
24 entries across 24 versions & 5 rubygems