Module: Pushkin
- Defined in:
- lib/pushkin.rb,
lib/pushkin/client.rb,
lib/pushkin/version.rb
Defined Under Namespace
Constant Summary collapse
- LOG_PREFIX =
"[pushkin]"
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/pushkin.rb', line 11 def self.logger return @logger if @logger @logger = if defined?(Rails) Rails.logger else Logger.new($stdout) end end |
.logger=(new_logger) ⇒ Object
21 22 23 |
# File 'lib/pushkin.rb', line 21 def self.logger=(new_logger) @logger = new_logger end |