Class: TaskJuggler::AlertLevelDefinition
- Defined in:
- lib/taskjuggler/AlertLevelDefinitions.rb
Overview
This class holds all information to describe a alert level as used by TaskJuggler. A level has a unique ID, a unique name and a unique color. Colors are stored as HTML compatible strings, e. g. “#RGB” where R, G, B are a single or two-digit hex value.
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color
20 21 22 |
# File 'lib/taskjuggler/AlertLevelDefinitions.rb', line 20 def color @color end |
#id ⇒ Object
Returns the value of attribute id
20 21 22 |
# File 'lib/taskjuggler/AlertLevelDefinitions.rb', line 20 def id @id end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/taskjuggler/AlertLevelDefinitions.rb', line 20 def name @name end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/taskjuggler/AlertLevelDefinitions.rb', line 22 def to_s "#{id} '#{name}' '#{color}'" end |