diff options
Diffstat (limited to 'lib/github/labels.rb')
-rw-r--r-- | lib/github/labels.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/github/labels.rb b/lib/github/labels.rb new file mode 100644 index 00000000000..0ea023888b3 --- /dev/null +++ b/lib/github/labels.rb @@ -0,0 +1,20 @@ +module Github + class Labels + attr_reader :owner, :repo + + def initialize(owner, repo) + @owner = owner + @repo = repo + end + + def fetch + Collection.new(labels_url).fetch + end + + private + + def labels_url + "/repos/#{owner}/#{repo}/labels" + end + end +end |