Permalink
Browse files

Add .collaborators method to Repository.

  • Loading branch information...
1 parent 5addb0b commit 385ce1d6989adae200b10c416e4ea614d24746c0 @runpaint committed Apr 24, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/octopi/repository.rb
View
@@ -5,7 +5,7 @@ class Repository < Base
find_path "/repos/search/:query"
resource_path "/repos/show/:id"
-
+
def tags
Tag.find(self.owner, self.name)
end
@@ -66,5 +66,10 @@ def all_issues
def issue(number)
Issue.find(self, number)
end
+
+ def collaborators
+ property('collaborators', [self.owner,self.name].join('/')).values
+ end
+
end
end

0 comments on commit 385ce1d

Please sign in to comment.