Class: Octopi::Comment

Included Modules

Octopi::Resource

Attributes

Instance Attributes

author [RW] 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

VALID

Constructor Summary

This class inherits a constructor from Octopi::Base.

Public Visibility

Public Class Method Summary

find(opts = {})

Public Instance Method Summary

#commit

Public Instance Methods Inherited from Octopi::Base

error=, property, save

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