Class: Unfuzzle::Priority

Inherits:
Object
  • Object
show all
Defined in:
lib/unfuzzle/lib/unfuzzle/priority.rb

Overview

Priority

Represents a priority for a ticket.

Instance Method Summary collapse

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

#nameObject

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