Class: Clearsale::Config

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

Class Method Summary collapse

Class Method Details

.entity_codeObject



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

def self.entity_code
  @@entity_code.nil? ? ENV['CLEARSALE_ENTITYCODE'] : @@entity_code
end

.envObject



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

def self.env
  @@env.nil? ? 'homolog' : @@env
end

.logObject



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

def self.log
  @@log.nil? ? true : @@log
end

.loggerObject



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

def self.logger
  @@logger ||= Logger.new(STDOUT)
end