module Bugsnag::Api
Constants
- VERSION
Public Class Methods
client()
click to toggle source
Get the static API client. Note that using the static API client may not work as expected in a multithreaded environment (e.g. when using the {#paginate} or {#last_response} instance methods)
@return [Bugsnag::Api::Client] API client
# File lib/bugsnag/api.rb, line 29 def client @client ||= Bugsnag::Api::Client.new end
configuration()
click to toggle source
Get the static client’s configuration options
@return [Bugsnag::Api::Configuration] configuration wrapper
# File lib/bugsnag/api.rb, line 19 def configuration client.configuration end
configure(&block)
click to toggle source
Set configuration options using a block
# File lib/bugsnag/api.rb, line 12 def configure(&block) client.configure(&block) if block_given? end
reset!()
click to toggle source
Reset the static API client
@return [Bugsnag::Api::Client] API client
# File lib/bugsnag/api.rb, line 36 def reset! @client = nil end
Private Class Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/bugsnag/api.rb, line 42 def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end