Module: Bugsnag::Api::Client::Releases

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

Overview

Methods for the Releases API

Instance Method Summary collapse

Instance Method Details

#release(project_id, release_id, options = {}) ⇒ Object

View a single Release



22
23
24
# File 'lib/bugsnag/api/client/releases.rb', line 22

def release(project_id, release_id, options = {})
  get "projects/#{project_id}/releases/#{release_id}", options
end

#releases(project_id, options = {}) ⇒ Array<Sawyer::Resource>

List the Releases in a Project

Parameters:

  • release_stage (Hash)

    a customizable set of options

  • base (Hash)

    a customizable set of options

  • sort (Hash)

    a customizable set of options

  • offset (Hash)

    a customizable set of options

  • per_page (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of Events for the specified Error

See Also:



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

def releases(project_id, options = {})
  get "projects/#{project_id}/releases", options
end

#releases_in_group(release_group_id, options = {}) ⇒ Array<Sawyer::Resource>

List the Releases in a Release Group

Parameters:

  • per_page (Hash)

    a customizable set of options

  • page_token (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of Releases for the specified Release Group

See Also:



32
33
34
# File 'lib/bugsnag/api/client/releases.rb', line 32

def releases_in_group(release_group_id, options = {})
  get "release_groups/#{release_group_id}/releases", options
end