Class: SignIn::SessionContainer
- Inherits:
-
Object
- Object
- SignIn::SessionContainer
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/sign_in/session_container.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#anti_csrf_token ⇒ Object
readonly
Returns the value of attribute anti_csrf_token.
-
#client_config ⇒ Object
readonly
Returns the value of attribute client_config.
-
#refresh_token ⇒ Object
readonly
Returns the value of attribute refresh_token.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session:, refresh_token:, access_token:, anti_csrf_token:, client_config:) ⇒ SessionContainer
constructor
A new instance of SessionContainer.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(session:, refresh_token:, access_token:, anti_csrf_token:, client_config:) ⇒ SessionContainer
Returns a new instance of SessionContainer.
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/sign_in/session_container.rb', line 24 def initialize(session:, refresh_token:, access_token:, anti_csrf_token:, client_config:) @session = session @refresh_token = refresh_token @access_token = access_token @anti_csrf_token = anti_csrf_token @client_config = client_config validate! end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
7 8 9 |
# File 'app/models/sign_in/session_container.rb', line 7 def access_token @access_token end |
#anti_csrf_token ⇒ Object (readonly)
Returns the value of attribute anti_csrf_token.
7 8 9 |
# File 'app/models/sign_in/session_container.rb', line 7 def anti_csrf_token @anti_csrf_token end |
#client_config ⇒ Object (readonly)
Returns the value of attribute client_config.
7 8 9 |
# File 'app/models/sign_in/session_container.rb', line 7 def client_config @client_config end |
#refresh_token ⇒ Object (readonly)
Returns the value of attribute refresh_token.
7 8 9 |
# File 'app/models/sign_in/session_container.rb', line 7 def refresh_token @refresh_token end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
7 8 9 |
# File 'app/models/sign_in/session_container.rb', line 7 def session @session end |
Instance Method Details
#persisted? ⇒ Boolean
38 39 40 |
# File 'app/models/sign_in/session_container.rb', line 38 def persisted? false end |