Sha256: 0e0e26cf34736bf9e85b4864c05d8a30e999243eeaa58469b615d534cfdf7778
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
module Trustvox # Responsible to hold api's access token class Config @store_id = nil @token = nil @staging = false def self.store_id=(value) @store_id = value end def self.store_id @store_id || ENV['TRUSTVOX_STORE_ID'] end def self.token=(value) @token = value end def self.token @token || ENV['TRUSTVOX_ACCESS_TOKEN'] end def self.store_token=(value) @store_token = value end def self.store_token @store_token || ENV['TRUSTVOX_STORE_TOKEN'] end def self.is_on_staging? @staging end def self.staging! @staging = true end def self.production! @staging = false end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
trustvox-0.4.0 | lib/trustvox/config.rb |
trustvox-0.3.0 | lib/trustvox/config.rb |
trustvox-0.2.0 | lib/trustvox/config.rb |
trustvox-0.1.0 | lib/trustvox/config.rb |