Module: Yeller

Defined in:
lib/yeller.rb,
lib/yeller/rack.rb,
lib/yeller/rails.rb,
lib/yeller/client.rb,
lib/yeller/server.rb,
lib/yeller/version.rb,
lib/yeller/configuration.rb,
lib/yeller/startup_params.rb,
lib/yeller/backtrace_filter.rb,
lib/yeller/log_error_handler.rb,
lib/yeller/exception_formatter.rb

Defined Under Namespace

Classes: BacktraceFilter, Client, Configuration, ExceptionFormatter, LogErrorHandler, Rack, Rails, SecureServer, Server, StartupParams

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.build_client(config) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/yeller.rb', line 20

def self.build_client(config)
  Yeller::Client.new(
    config.servers,
    config.token,
    Yeller::StartupParams.defaults(config.startup_params),
    Yeller::BacktraceFilter.new(config.backtrace_filters),
    config.error_handler
  )
end

.client(&block) ⇒ Object



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

def self.client(&block)
  config = Yeller::Configuration.new
  block.call(config)
  build_client(config)
end