class Tinybucket::Api::DiffApi

Diff Api client

@see developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/diff/%7Bspec%7D

diff Resource

@!attribute [rw] repo_owner

@return [String] repository owner name.

@!attribute [rw] repo_slug

@return [String] {https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D repository slug}.

Attributes

repo_owner[RW]
repo_slug[RW]

Public Instance Methods

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

Send 'GET a diff' request

@param spec [String] A specification such as a branch name,

revision, or commit SHA.

@param options [Hash] @return [String] diff as raw text

# File lib/tinybucket/api/diff_api.rb, line 25
def find(spec, options = {})
  get_path(path_to_find(spec), options)
end
find_patch(spec, options = {}) click to toggle source

Send 'GET a patch' request

@param spec [String] A specification such as a branch name,

revision, or commit SHA.

@param options [Hash] @return [String] patch as raw text

# File lib/tinybucket/api/diff_api.rb, line 35
def find_patch(spec, options = {})
  get_path(path_to_patch(spec), options)
end