class Tinybucket::Resource::Commit::Comments

Public Instance Methods

find(comment_id, options = {}) click to toggle source

Get the specific commit comment which associate with the commit.

@param comment_id [String] @param options [Hash] @return [Tinybucket::Model::Comment]

# 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

Private Instance Methods

comments_api() click to toggle source
# File lib/tinybucket/resource/commit/comments.rb, line 20
def comments_api
  create_api('Comments', @commit.repo_keys).tap do |api|
    api.commented_to = @commit
  end
end
enumerator() click to toggle source
# File lib/tinybucket/resource/commit/comments.rb, line 26
def enumerator
  create_enumerator(comments_api, :list, *@args) do |m|
    inject_repo_keys(m, @commit.repo_keys)
  end
end