Module: Captivus

Defined in:
lib/captivus/util.rb,
lib/captivus.rb,
lib/captivus/payload.rb,
lib/captivus/railtie.rb,
lib/captivus/version.rb,
lib/captivus/notifier.rb,
lib/captivus/backtrace.rb,
lib/captivus/configuration.rb,
lib/captivus/rack_capturer.rb,
lib/captivus/backtrace/line.rb,
lib/captivus/rails_capturer.rb

Overview

TODO: test

Defined Under Namespace

Modules: Util Classes: Backtrace, Configuration, Notifier, Payload, RackCapturer, RailsCapturer, Railtie

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.configObject



10
11
12
# File 'lib/captivus.rb', line 10

def config
  @config ||= Configuration.new
end

.configure(*args, &block) ⇒ Object



14
15
16
# File 'lib/captivus.rb', line 14

def configure(*args, &block)
  config.configure *args, &block
end

.notifierObject



18
19
20
# File 'lib/captivus.rb', line 18

def notifier
  @notifier ||= Notifier.new config
end

.notify(exception, data = {}) ⇒ Object



22
23
24
# File 'lib/captivus.rb', line 22

def notify(exception, data = {})
  notifier.notify build_payload(exception, data)
end