Class: Octopi::Blob

Included Modules

Octopi::Resource

Attributes

Instance Attributes

text [RW] public

Sets the attribute text.

Constants Inherited from Octopi::Base

VALID

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

error=, property, save

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
Generated on Friday, July 31 2009 at 05:01:55 PM by YARD 0.2.3.2 (ruby-1.8.6).