Class: Labelito::Label
- Inherits:
-
Object
- Object
- Labelito::Label
- Defined in:
- lib/Labelito/label.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, color) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(name, color) ⇒ Label
Returns a new instance of Label.
6 7 8 9 |
# File 'lib/Labelito/label.rb', line 6 def initialize(name, color) @name = name @color = color end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
4 5 6 |
# File 'lib/Labelito/label.rb', line 4 def color @color end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/Labelito/label.rb', line 4 def name @name end |