Class: Octopi::FileObject

Inherits:
Base
  • Object
show all
Includes:
Resource
Defined in:
lib/octopi/file_object.rb

Constant Summary

Constants inherited from Base

Base::VALID

Instance Attribute Summary

Attributes inherited from Base

#api

Class Method Summary collapse

Methods included from Resource

for, included

Methods inherited from Base

#initialize, #property, #save

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. 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