Class: Trustvox::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/trustvox/config.rb

Overview

Responsible to hold api’s access token

Class Method Summary collapse

Class Method Details

.is_on_staging?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/trustvox/config.rb', line 32

def self.is_on_staging?
  @staging
end

.production!Object



40
41
42
# File 'lib/trustvox/config.rb', line 40

def self.production!
  @staging = false
end

.staging!Object



36
37
38
# File 'lib/trustvox/config.rb', line 36

def self.staging!
  @staging = true
end

.store_idObject



12
13
14
# File 'lib/trustvox/config.rb', line 12

def self.store_id
  @store_id || ENV['TRUSTVOX_STORE_ID']
end

.store_id=(value) ⇒ Object



8
9
10
# File 'lib/trustvox/config.rb', line 8

def self.store_id=(value)
  @store_id = value
end

.store_tokenObject



28
29
30
# File 'lib/trustvox/config.rb', line 28

def self.store_token
  @store_token || ENV['TRUSTVOX_STORE_TOKEN']
end

.store_token=(value) ⇒ Object



24
25
26
# File 'lib/trustvox/config.rb', line 24

def self.store_token=(value)
  @store_token = value
end

.tokenObject



20
21
22
# File 'lib/trustvox/config.rb', line 20

def self.token
  @token || ENV['TRUSTVOX_ACCESS_TOKEN']
end

.token=(value) ⇒ Object



16
17
18
# File 'lib/trustvox/config.rb', line 16

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