Class | LoginHistory
In: | app/models/login_history.rb
Parent: | ActiveRecord::Base

ログイン履歴のモデル。

### Methods

password program_type_as_symbol result_as_symbol

### Constants

RESULTS | = | [ :RESULT_UNKNOWN, :RESULT_LOGIN_SUCCEEDED, :RESULT_LOGIN_FAILED, :RESULT_PASSWORD_EXPIRED, :RESULT_LOGOUT, :RESULT_SESSION_TIMED_OUT, :RESULT_LOGIN_SKIPPED, :RESULT_USER_AGENT_CHANGED, :RESULT_MAX
PROGRAM_TYPES | = | [ :PROGRAM_TYPE_UNKNOWN, :PROGRAM_TYPE_WEB, :PROGRAM_TYPE_MAX

### Public Instance methods

password()

[Source]

        # File app/models/login_history.rb, line 69
    69:     def password
    70:       return "[FILTERED]"
    71:     end

program_type_as_symbol()

プログラムの型をシンボルで返す。

[Source]

        # File app/models/login_history.rb, line 64
    64:   def program_type_as_symbol
    65:     return PROGRAM_TYPES[read_attribute("program_type")]
    66:   end

result_as_symbol()

ログイン結果をシンボルで返す。

[Source]

        # File app/models/login_history.rb, line 49
    49:   def result_as_symbol
    50:     return RESULTS[read_attribute("result")]
    51:   end

[Validate]