Class: Octopi::FileObject
- Includes:
- Resource
- Defined in:
- lib/octopi/file_object.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sha ⇒ Object
Returns the value of attribute sha.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Resource
Methods inherited from Base
#error=, #initialize, #property, #save
Constructor Details
This class inherits a constructor from Octopi::Base
Instance Attribute Details
#mode ⇒ Object
Returns the value of attribute mode.
3 4 5 |
# File 'lib/octopi/file_object.rb', line 3 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/octopi/file_object.rb', line 3 def name @name end |
#sha ⇒ Object
Returns the value of attribute sha.
3 4 5 |
# File 'lib/octopi/file_object.rb', line 3 def sha @sha end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/octopi/file_object.rb', line 3 def type @type end |
Class Method Details
.find(options = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/octopi/file_object.rb', line 9 def self.find(={}) ensure_hash() user, repo, branch, sha = gather_details() self.validate_args(sha => :sha, user => :user, repo => :repo) super [user, repo, sha] end |