Class: Octopi::Comment
- Includes:
- Resource
- Defined in:
- lib/octopi/comment.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#content ⇒ Object
Returns the value of attribute content.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#published ⇒ Object
Returns the value of attribute published.
-
#repository ⇒ Object
Returns the value of attribute repository.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated ⇒ Object
Returns the value of attribute updated.
Attributes inherited from Base
Class Method Summary collapse
Instance 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
#author ⇒ Object
Returns the value of attribute author.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def @author end |
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def content @content end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def link @link end |
#published ⇒ Object
Returns the value of attribute published.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def published @published end |
#repository ⇒ Object
Returns the value of attribute repository.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def repository @repository end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def title @title end |
#updated ⇒ Object
Returns the value of attribute updated.
3 4 5 |
# File 'lib/octopi/comment.rb', line 3 def updated @updated end |
Class Method Details
.find(options = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/octopi/comment.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 |