Module: Bugsnag::Api::Client::CurrentUser

Included in:
Bugsnag::Api::Client
Defined in:
lib/bugsnag/api/client/currentuser.rb

Overview

Methods for theCurrent User API

Instance Method Summary collapse

Instance Method Details

#organizations(options = {}) ⇒ Array<Sawyer::Resource>

List the Current User's Organizations

Parameters:

  • admin (Hash)

    a customizable set of options

  • per_page (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of Organizations

See Also:



15
16
17
# File 'lib/bugsnag/api/client/currentuser.rb', line 15

def organizations(options = {})
  paginate "user/organizations", options
end

#projects(org_id, options = {}) ⇒ Array<Sawyer::Resource>

List the Current User's Projects

Parameters:

  • sort (Hash)

    a customizable set of options

  • direction (Hash)

    a customizable set of options

  • per_page (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of Projects

See Also:



26
27
28
# File 'lib/bugsnag/api/client/currentuser.rb', line 26

def projects(org_id, options = {})
  paginate "organizations/#{org_id}/projects", options
end