Class: Clearsale::Config
- Inherits:
-
Object
- Object
- Clearsale::Config
- Defined in:
- lib/clearsale/config.rb
Class Method Summary collapse
Class Method Details
.entity_code ⇒ Object
16 17 18 |
# File 'lib/clearsale/config.rb', line 16 def self.entity_code @@entity_code.nil? ? ENV['CLEARSALE_ENTITYCODE'] : @@entity_code end |
.env ⇒ Object
20 21 22 |
# File 'lib/clearsale/config.rb', line 20 def self.env @@env.nil? ? 'homolog' : @@env end |
.log ⇒ Object
12 13 14 |
# File 'lib/clearsale/config.rb', line 12 def self.log @@log.nil? ? true : @@log end |
.logger ⇒ Object
8 9 10 |
# File 'lib/clearsale/config.rb', line 8 def self.logger @@logger ||= Logger.new(STDOUT) end |