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
-
#organizations(options = {}) ⇒ Array<Sawyer::Resource>
List the Current User's Organizations.
-
#projects(org_id, options = {}) ⇒ Array<Sawyer::Resource>
List the Current User's Projects.
Instance Method Details
#organizations(options = {}) ⇒ Array<Sawyer::Resource>
List the Current User's Organizations
15 16 17 |
# File 'lib/bugsnag/api/client/currentuser.rb', line 15 def organizations( = {}) paginate "user/organizations", end |
#projects(org_id, options = {}) ⇒ Array<Sawyer::Resource>
List the Current User's Projects
26 27 28 |
# File 'lib/bugsnag/api/client/currentuser.rb', line 26 def projects(org_id, = {}) paginate "organizations/#{org_id}/projects", end |