class Tinybucket::Api::BranchesApi

Branches Api client

@!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 repo_slug}.

Attributes

repo_owner[RW]
repo_slug[RW]

Public Instance Methods

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

Send 'GET an individual branch' request

@see developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/refs/branches/%7Bname%7D#get

GET an individual branch

@param name [String] The branch name @param options [Hash] @return [Tinybucket::Model::Branch]

# File lib/tinybucket/api/branches_api.rb, line 39
def find(name, options = {})
  get_path(
    path_to_find(name),
    options,
    get_parser(:object, Tinybucket::Model::Branch)
  )
end
list(options = {}) click to toggle source

Send 'GET a branches list for a repository' request

@see developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/refs/branches#get

GET a branches list for a repository

@param options [Hash] @return [Tinybucket::Model::Page]

# File lib/tinybucket/api/branches_api.rb, line 23
def list(options = {})
  get_path(
    path_to_list,
    options,
    get_parser(:collection, Tinybucket::Model::Branch)
  )
end