Class: Gish::Label
- Inherits:
-
Object
- Object
- Gish::Label
- Defined in:
- lib/gish/presentation/label.rb
Instance Method Summary collapse
-
#initialize(github_label) ⇒ Label
constructor
A new instance of Label.
- #to_s ⇒ Object
Constructor Details
#initialize(github_label) ⇒ Label
Returns a new instance of Label.
3 4 5 6 |
# File 'lib/gish/presentation/label.rb', line 3 def initialize(github_label) @name = github_label.name @color = github_label.color end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/gish/presentation/label.rb', line 8 def to_s "#{@color} #{@name}" end |