Class: DomoscioAdmin::AuthorizationToken::Manager

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

Overview

Token Manager

Class Method Summary collapse

Class Method Details

.storageObject



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

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

.tokenObject



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

def token
  storage.get
end