Class: Keybase::TokenStore

Inherits:
Object
  • Object
show all
Defined in:
lib/keybase/token_store.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

Returns the value of attribute cookie.



5
6
7
# File 'lib/keybase/token_store.rb', line 5

def cookie
  @cookie
end

#csrfObject

Returns the value of attribute csrf.



5
6
7
# File 'lib/keybase/token_store.rb', line 5

def csrf
  @csrf
end

Class Method Details



15
16
17
# File 'lib/keybase/token_store.rb', line 15

def self.cookie
  instance.cookie
end

.cookie=(cookie) ⇒ Object



19
20
21
# File 'lib/keybase/token_store.rb', line 19

def self.cookie=(cookie)
  instance.cookie = cookie
end

.csrfObject



7
8
9
# File 'lib/keybase/token_store.rb', line 7

def self.csrf
  instance.csrf
end

.csrf=(csrf) ⇒ Object



11
12
13
# File 'lib/keybase/token_store.rb', line 11

def self.csrf=(csrf)
  instance.csrf = csrf
end

.instanceObject



23
24
25
# File 'lib/keybase/token_store.rb', line 23

def self.instance
  @@instance ||= new
end