Class: Tinybucket::Resource::Commit::Comments

Inherits:
Base
  • Object
show all
Defined in:
lib/tinybucket/resource/commit/comments.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Tinybucket::Resource::Commit::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Tinybucket::Resource::Base

Instance Method Details

#find(comment_id, options = {}) ⇒ Tinybucket::Model::Comment

Get the specific commit comment which associate with the commit.

Parameters:

  • comment_id (String)
  • options (Hash) (defaults to: {})

Returns:


12
13
14
15
16
# File 'lib/tinybucket/resource/commit/comments.rb', line 12

def find(comment_id, options = {})
  comments_api.find(comment_id, options).tap do |m|
    m.repo_keys = @commit.repo_keys
  end
end