Module: Push

Defined in:
lib/push.rb,
lib/push/backend.rb,
lib/push/version.rb,
lib/push/producer.rb,
lib/push/transport.rb,
lib/push/configuration.rb

Defined Under Namespace

Modules: Backend, Logging, Transport Classes: Configuration, Producer

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.config {|@config| ... } ⇒ Object

Yields:



14
15
16
17
18
# File 'lib/push.rb', line 14

def self.config(&blk)
  @config ||= Configuration.new
  yield @config if block_given?
  @config
end

.config=(config) ⇒ Object



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

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

.exception_reporter(e) ⇒ Object



28
29
30
# File 'lib/push.rb', line 28

def self.exception_reporter(e)
  Push.config.exception_reporter.call(e)
end

.loggerObject



24
25
26
# File 'lib/push.rb', line 24

def self.logger
  config.logger
end