Sha256: 8932af32a00c34c6b670b5bee096dce8ab3cfbd2fbc208afcce7cafe33559813
Contents?: true
Size: 581 Bytes
Versions: 26
Compression:
Stored size: 581 Bytes
Contents
module Octopi class Comment < Base attr_accessor :content, :author, :title, :updated, :link, :published, :id, :repository include Resource set_resource_name "tree" resource_path "/tree/show/:id" def self.find(options={}) ensure_hash(options) user, repo, branch, sha = gather_details(options) self.validate_args(sha => :sha, user => :user, repo => :repo) super [user, repo, sha] end def commit Commit.find(:user => repository.owner, :repo => repository, :sha => /commit\/(.*?)#/.match(link)[1]) end end end
Version data entries
26 entries across 26 versions & 4 rubygems