Class: Gish::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/gish/presentation/label.rb

Instance Method Summary collapse

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_sObject



8
9
10
# File 'lib/gish/presentation/label.rb', line 8

def to_s
  "#{@color}  #{@name}"
end