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

Version Path
octopi-0.4.5 lib/octopi/comment.rb
octopi-0.4.4 lib/octopi/comment.rb
octopi-0.4.3 lib/octopi/comment.rb
octopi-0.4.2 lib/octopi/comment.rb
octopi-0.4.1 lib/octopi/comment.rb
octopi-0.4.0 lib/octopi/comment.rb
octopi-0.3.0 lib/octopi/comment.rb
dcuddeback-octopi-0.2.12 lib/octopi/comment.rb
dcuddeback-octopi-0.2.11 lib/octopi/comment.rb
dcuddeback-octopi-0.2.9 lib/octopi/comment.rb
dcuddeback-octopi-0.2.8 lib/octopi/comment.rb
devver-octopi-0.2.14 lib/octopi/comment.rb
tpitale-octopi-0.3.0 lib/octopi/comment.rb
devver-octopi-0.2.13 lib/octopi/comment.rb
devver-octopi-0.2.12 lib/octopi/comment.rb
octopi-0.2.8 lib/octopi/comment.rb
devver-octopi-0.2.11 lib/octopi/comment.rb
devver-octopi-0.2.10 lib/octopi/comment.rb
devver-octopi-0.2.9 lib/octopi/comment.rb
devver-octopi-0.2.8 lib/octopi/comment.rb