Class: Octopi::FileObject
- Includes:
- Resource
- Defined in:
- lib/octopi/file_object.rb
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, sha) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/octopi/file_object.rb', line 8 def self.find(user, repo, sha) user = user.login if user.is_a? User repo = repo.name if repo.is_a? Repository self.validate_args(sha => :sha, user => :user, repo => :repo) super [user,repo,sha] end |