Class: AirbrakeAPI::Project

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

Class Method Summary collapse

Methods inherited from Base

deprecate, fetch, setup

Class Method Details

.collection_pathObject

Deprecated.

Please use Client::projects_path instead



14
15
16
17
# File 'lib/airbrake-api/project.rb', line 14

def self.collection_path
  deprecate('Project.collection_path has been deprecated; use AibrakeAPI::Client.projects_path instead')
  AirbrakeAPI::Client.new.projects_path
end

.find(*args) ⇒ Object

Deprecated.

Please use Client::projects instead



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

def self.find(*args)
  deprecate('Project.find has been deprecated; use AibrakeAPI::Client.projects instead')
  options = args.last.is_a?(::Hash) ? args.pop : {}
  AirbrakeAPI::Client.new.projects(options)
end