Module: AirbrakeAPI

Extended by:
Configuration
Defined in:
lib/airbrake-api/base.rb,
lib/airbrake-api.rb,
lib/airbrake-api/error.rb,
lib/airbrake-api/client.rb,
lib/airbrake-api/notice.rb,
lib/airbrake-api/project.rb,
lib/airbrake-api/version.rb,
lib/airbrake-api/configuration.rb,
lib/airbrake-api/middleware/scrub_response.rb,
lib/airbrake-api/middleware/raise_server_error.rb,
lib/airbrake-api/middleware/raise_response_error.rb

Overview

placeholder since pre-refactor classes used AirbrakeAPI::Base

Defined Under Namespace

Modules: Configuration, Middleware Classes: AirbrakeError, Base, Client, Error, Notice, Project

Constant Summary collapse

VERSION =
'4.6.1'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_CONNECTION_OPTIONS, Configuration::DEFAULT_MIDDLEWARE, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

account_path, configure, extended, options, protocol, reset

Class Method Details

.client(options = {}) ⇒ Instapaper::Client

Alias for Instapaper::Client.new

Returns:

  • (Instapaper::Client)

11
12
13
# File 'lib/airbrake-api.rb', line 11

def self.client(options={})
  AirbrakeAPI::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to Instapaper::Client


16
17
18
19
# File 'lib/airbrake-api.rb', line 16

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/airbrake-api.rb', line 21

def self.respond_to?(method, include_private = false)
  client.respond_to?(method, include_private) || super(method, include_private)
end