Class: Booker::GenericTokenStore

Inherits:
Object
  • Object
show all
Defined in:
lib/booker/generic_token_store.rb

Class Method Summary collapse

Class Method Details

.temp_access_tokenObject



3
4
5
# File 'lib/booker/generic_token_store.rb', line 3

def self.temp_access_token
  @temp_access_token
end

.temp_access_token=(token) ⇒ Object



7
8
9
# File 'lib/booker/generic_token_store.rb', line 7

def self.temp_access_token=(token)
  @temp_access_token = token
end

.temp_access_token_expires_atObject



11
12
13
# File 'lib/booker/generic_token_store.rb', line 11

def self.temp_access_token_expires_at
  @temp_access_token_expires_at
end

.temp_access_token_expires_at=(expires_at) ⇒ Object



15
16
17
# File 'lib/booker/generic_token_store.rb', line 15

def self.temp_access_token_expires_at=(expires_at)
  @temp_access_token_expires_at = expires_at
end

.update_booker_access_token!(token, expires_at) ⇒ Object



19
20
21
22
23
# File 'lib/booker/generic_token_store.rb', line 19

def self.update_booker_access_token!(token, expires_at)
  self.temp_access_token = token
  self.temp_access_token_expires_at = expires_at
  true
end