summaryrefslogtreecommitdiff
path: root/lib/github/representation/label.rb
blob: b3140ab76fc1af47af439983181619b3b361444d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Github
  module Representation
    class Label < Representation::Base
      def color
        "##{raw['color']}"
      end

      def title
        raw['name']
      end

      def url
        raw['url']
      end
    end
  end
end