Class: Octopi::Tag
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods included from Resource
Methods inherited from Base
Constructor Details
This class inherits a constructor from Octopi::Base
Class Method Details
.find(user, repo) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/octopi/tag.rb', line 8 def self.find(user, repo) user = user.login if user.is_a? User repo = repo.name if repo.is_a? Repository self.validate_args(user => :user, repo => :repo) find_plural([user,repo,'tags'], :resource){ |i| {:name => i.first, :hash => i.last } } end |