Class: AirbrakeAPI::Project

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

Class Method Summary collapse

Class Method Details

.collection_pathObject



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

def self.collection_path
  '/data_api/v1/projects.xml'
end

.find(*args) ⇒ Object

Raises:



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

def self.find(*args)
  setup
  options = args.extract_options!

  results = fetch(collection_path, options)

  raise AirbrakeError.new(results.errors.error) if results.errors
  results.projects.project
end