Class: LsOmniauth::AuthSessions
- Inherits:
-
Object
- Object
- LsOmniauth::AuthSessions
- Defined in:
- app/models/ls_omniauth/auth_sessions.rb
Constant Summary collapse
- AUTH_SESSION_KEY =
"ls_auth_user"
- AUTH_REQUEST_ORIGIN =
"ls_auth_request_origin"
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(session) ⇒ AuthSessions
constructor
A new instance of AuthSessions.
Constructor Details
#initialize(session) ⇒ AuthSessions
Returns a new instance of AuthSessions.
6 7 8 9 |
# File 'app/models/ls_omniauth/auth_sessions.rb', line 6 def initialize(session) @auth = LsOmniauth::AbstractSession.new(session, AUTH_SESSION_KEY) @origin = LsOmniauth::AbstractSession.new(session, AUTH_REQUEST_ORIGIN) end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
5 6 7 |
# File 'app/models/ls_omniauth/auth_sessions.rb', line 5 def auth @auth end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
5 6 7 |
# File 'app/models/ls_omniauth/auth_sessions.rb', line 5 def origin @origin end |