Method: Bugsnag::Api::Client::Errors#errors

Defined in:
lib/bugsnag/api/client/errors.rb

#errors(project_id, id = nil, options = {}) ⇒ Array<Sawyer::Resource> Also known as: error

List the Errors on a Project

Parameters:

  • base (Hash)

    a customizable set of options

  • sort (Hash)

    a customizable set of options

  • direction (Hash)

    a customizable set of options

  • filters (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of Project Errors

See Also:



19
20
21
22
23
24
25
# File 'lib/bugsnag/api/client/errors.rb', line 19

def errors(project_id, id=nil, options = {})
  if id.nil?
    paginate "projects/#{project_id}/errors", options
  else
    get "projects/#{project_id}/errors/#{id}", options
  end
end