Class: Unfuzzle::Severity

Inherits:
Object
  • Object
show all
Includes:
Graft
Defined in:
lib/unfuzzle/lib/unfuzzle/severity.rb

Overview

Severity

Represents a Severity in an Unfuddle project. These are user-configurable and are custom for each project you have. Examples include ‘Story’, ‘Defect’, etc.. A severity has the following attributes:

id

The unique identifier for this severity

name

The name of this severity

created_at

The date/time that this severity was created

updated_at

The date/time that this severity was last updated

Class Method Summary collapse

Methods included from Graft

included

Class Method Details

.find_by_project_id_and_severity_id(project_id, severity_id) ⇒ Object

Find the severity by ID for a given project



25
26
27
28
# File 'lib/unfuzzle/lib/unfuzzle/severity.rb', line 25

def self.find_by_project_id_and_severity_id(project_id, severity_id)
  response = Request.get("/projects/#{project_id}/severities/#{severity_id}")
  new response.body
end