Module: Wispro

Defined in:
lib/wispro/client.rb,
lib/wispro/logger.rb,
lib/wispro/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
'0.1.3'.freeze

Class Method Summary collapse

Class Method Details

.loggerObject



2
3
4
# File 'lib/wispro/logger.rb', line 2

def self.logger
  @logger ||= defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
end

.logger=(logger) ⇒ Object



6
7
8
# File 'lib/wispro/logger.rb', line 6

def self.logger=(logger)
  @logger = logger
end