Class: DomoscioRails::AuthorizationToken::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/domoscio_rails/authorization_token.rb

Overview

Token Manager

Class Method Summary collapse

Class Method Details

.storageObject

[View source]

6
7
8
# File 'lib/domoscio_rails/authorization_token.rb', line 6

def storage
  @storage ||= DomoscioRails.configuration.file_storage ? FileStorage.new : ManualSetting.new
end

.tokenObject

[View source]

10
11
12
# File 'lib/domoscio_rails/authorization_token.rb', line 10

def token
  storage.get
end