Class: Snov::InMemoryTokenStorage
- Inherits:
-
Object
- Object
- Snov::InMemoryTokenStorage
- Defined in:
- lib/snov/in_memory_token_storage.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(token = nil) ⇒ InMemoryTokenStorage
constructor
A new instance of InMemoryTokenStorage.
- #put(token_hash) ⇒ Object
Constructor Details
#initialize(token = nil) ⇒ InMemoryTokenStorage
3 4 5 |
# File 'lib/snov/in_memory_token_storage.rb', line 3 def initialize(token = nil) @stored_token = token end |
Instance Method Details
#get ⇒ Object
7 8 9 |
# File 'lib/snov/in_memory_token_storage.rb', line 7 def get @stored_token end |
#put(token_hash) ⇒ Object
11 12 13 |
# File 'lib/snov/in_memory_token_storage.rb', line 11 def put(token_hash) @stored_token = token_hash end |