Class: Octopi::Comment
- Octopi::Base
- Octopi::Comment
Included Modules
Attributes
Instance Attributes
author | [ | ]public |
Sets the attribute author. |
---|---|---|---|
content | [RW] | public |
Sets the attribute content. |
id | [RW] | public |
Sets the attribute id. |
link | [RW] | public |
Sets the attribute link. |
published | [RW] | public |
Sets the attribute published. |
repository | [RW] | public |
Sets the attribute repository. |
title | [RW] | public |
Sets the attribute title. |
updated | [RW] | public |
Sets the attribute updated. |
Constants Inherited from Octopi::Base
Constructor Summary
This class inherits a constructor from Octopi::Base.
Public Visibility
Public Class Method Summary
find(opts = {}) |
---|
Public Class Method Details
find
public
find(opts = {})
[View source]
9 10 11 12 13 |
# File 'lib/octopi/comment.rb', line 9 def self.find(opts={}) user, repo, branch, sha = gather_details(opts) self.validate_args(sha => :sha, user => :user, repo => :repo) super [user, repo, sha] end |
Public Instance Method Details
commit
public
commit
[View source]
15 16 17 |
# File 'lib/octopi/comment.rb', line 15 def commit Commit.find(:user => repository.owner, :repo => repository, :sha => /commit\/(.*?)#/.match(link)[1]) end |