Class: AirbrakeAPI::Notice

Inherits:
Base
  • Object
show all
Defined in:
lib/airbrake-api/notice.rb

Class Method Summary collapse

Methods inherited from Base

deprecate, fetch, setup

Class Method Details

.all_path(error_id) ⇒ Object

Deprecated.

Please use Client::notices_path instead


31
32
33
34
# File 'lib/airbrake-api/notice.rb', line 31

def self.all_path(error_id)
  deprecate('Notice.all_path has been deprecated; use AibrakeAPI::Client#notices_path instead')
  AirbrakeAPI::Client.new.notices_path(error_id)
end

.find(id, error_id, options = {}) ⇒ Object

Deprecated.

Please use Client::notice instead


7
8
9
10
# File 'lib/airbrake-api/notice.rb', line 7

def self.find(id, error_id, options = {})
  deprecate('Notice.find has been deprecated; use AibrakeAPI::Client#notice instead')
  AirbrakeAPI::Client.new.notice(id, error_id, options)
end

.find_all_by_error_id(error_id, notice_options = {}, &block) ⇒ Object

Deprecated.

Please use Client::all_notices instead


13
14
15
16
# File 'lib/airbrake-api/notice.rb', line 13

def self.find_all_by_error_id(error_id, notice_options = {}, &block)
  deprecate('Notice.find_all_by_error_id has been deprecated; use AibrakeAPI::Client#notices instead')
  AirbrakeAPI::Client.new.notices(error_id, notice_options, &block)
end

.find_by_error_id(error_id, options = {}) ⇒ Object

Deprecated.

Please use Client::notices instead


19
20
21
22
# File 'lib/airbrake-api/notice.rb', line 19

def self.find_by_error_id(error_id, options = {})
  deprecate('Notice.find_by_error_id has been deprecated; use AibrakeAPI::Client#notices instead')
  AirbrakeAPI::Client.new.notices(error_id, options)
end

.find_path(id, error_id) ⇒ Object

Deprecated.

Please use Client::notice_path instead


25
26
27
28
# File 'lib/airbrake-api/notice.rb', line 25

def self.find_path(id, error_id)
  deprecate('Notice.find_path has been deprecated; use AibrakeAPI::Client#notice_path instead')
  AirbrakeAPI::Client.new.notice_path(id, error_id)
end