Class: Fabricio::Authorization::AbstractSessionStorage
- Inherits:
-
Object
- Object
- Fabricio::Authorization::AbstractSessionStorage
- Defined in:
- lib/fabricio/authorization/abstract_session_storage.rb
Overview
A class providing an interface for implementing Fabric session storage. Subclass it to provide your own behaviour (e.g. storing session data in database)
Direct Known Subclasses
Instance Method Summary collapse
-
#obtain_session ⇒ Fabricio::Authorization::Session
Override it with your own behavior of obtaining a [Fabricio::Authorization::Session] object.
-
#reset ⇒ Object
Override it with your own behavior of deleting stored [Fabricio::Authorization::Session] object.
-
#store_session(_) ⇒ Object
Override it with your own behavior of storing a [Fabricio::Authorization::Session] object.
Instance Method Details
#obtain_session ⇒ Fabricio::Authorization::Session
Override it with your own behavior of obtaining a [Fabricio::Authorization::Session] object
11 12 13 |
# File 'lib/fabricio/authorization/abstract_session_storage.rb', line 11 def obtain_session raise NotImplementedError, "Implement this method in a child class" end |
#reset ⇒ Object
Override it with your own behavior of deleting stored [Fabricio::Authorization::Session] object
21 22 23 |
# File 'lib/fabricio/authorization/abstract_session_storage.rb', line 21 def reset raise NotImplementedError, "Implement this method in a child class" end |
#store_session(_) ⇒ Object
Override it with your own behavior of storing a [Fabricio::Authorization::Session] object
16 17 18 |
# File 'lib/fabricio/authorization/abstract_session_storage.rb', line 16 def store_session(_) raise NotImplementedError, "Implement this method in a child class" end |