Class: Octopi::Blob
- Octopi::Base
- Octopi::Blob
Included Modules
Attributes
Instance Attributes
text | [RW] | public |
Sets the attribute text. |
---|
Constants Inherited from Octopi::Base
Constructor Summary
This class inherits a constructor from Octopi::Base.
Public Visibility
Public Class Method Summary
find(user, repo, sha, path = nil) |
---|
Public Instance Methods Inherited from Octopi::Base
Public Class Method Details
find
public
find(user, repo, sha, path = nil)
[View source]
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/octopi/blob.rb', line 10 def self.find(user, repo, sha, path = nil) user = user.to_s repo = repo.to_s self.validate_args(sha => :sha, user => :user) if path super [user, repo, sha, path] else Api.api.get_raw(path_for(:resource), {:id => [user, repo, sha].join('/')}) end end |