Sha256: bc32344431497caacd863a167c5de8714cef94a29623f64ed3c868daf97e0ffb
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
module Castronaut class AuthenticationResult attr_reader :username, :identifier, :error_message def initialize(username, error_message=nil, identifier=nil) @username = username @identifier = identifier.nil? ? username : identifier @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
masover-castronaut-0.4.4.5 | lib/castronaut/authentication_result.rb |