summaryrefslogtreecommitdiff
path: root/lib/github/representation/label.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/github/representation/label.rb')
-rw-r--r--lib/github/representation/label.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/github/representation/label.rb b/lib/github/representation/label.rb
new file mode 100644
index 00000000000..60aa51f9569
--- /dev/null
+++ b/lib/github/representation/label.rb
@@ -0,0 +1,13 @@
+module Github
+ module Representation
+ class Label < Representation::Base
+ def color
+ "##{raw['color']}"
+ end
+
+ def title
+ raw['name']
+ end
+ end
+ end
+end