class Labelito::Label

Attributes

color[R]
name[R]

Public Class Methods

from_github_label(label) click to toggle source
# File lib/Labelito/label.rb, line 11
def self.from_github_label(label)
  return Label.new label[:name], label[:color] if label[:name] && label[:color]
end
new(name, color) click to toggle source
# File lib/Labelito/label.rb, line 6
def initialize(name, color)
  @name = name
  @color = color
end