Sha256: ce5e0bac9fab53e6aa1ff15083cd0b3f54785a0296974c7740a750abbfa77be5
Contents?: true
Size: 283 Bytes
Versions: 1
Compression:
Stored size: 283 Bytes
Contents
module Labelito class Label attr_reader :name, :color def initialize(name, color) @name = name @color = color end def self.from_github_label(label) return Label.new label[:name], label[:color] if label[:name] && label[:color] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
labelito-0.1.2 | lib/Labelito/label.rb |