Class: Unfuzzle::Priority
- Inherits:
-
Object
- Object
- Unfuzzle::Priority
- Defined in:
- lib/unfuzzle/lib/unfuzzle/priority.rb
Overview
Priority
Represents a priority for a ticket.
Instance Method Summary collapse
-
#initialize(id) ⇒ Priority
constructor
A new instance of Priority.
-
#name ⇒ Object
The name of the priority based on the supplied ID.
Constructor Details
#initialize(id) ⇒ Priority
Returns a new instance of Priority.
9 10 11 |
# File 'lib/unfuzzle/lib/unfuzzle/priority.rb', line 9 def initialize(id) @id = id end |
Instance Method Details
#name ⇒ Object
The name of the priority based on the supplied ID
14 15 16 |
# File 'lib/unfuzzle/lib/unfuzzle/priority.rb', line 14 def name mapping[@id] end |