Class: Snov::InMemoryTokenStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/snov/in_memory_token_storage.rb

Instance Method Summary collapse

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

#getObject



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