Class: Tinybucket::Api::ReposApi

Inherits:
BaseApi
  • Object
show all
Includes:
Helper::ReposHelper
Defined in:
lib/tinybucket/api/repos_api.rb

Overview

Repos Api client

Constant Summary

Constants included from Connection

Connection::DEFAULT_USER_AGENT

Instance Method Summary collapse

Methods included from Connection

#caching?, #clear_cache, #connection

Instance Method Details

#list(options = {}) ⇒ Tinybucket::Model::Page

Send ‘GET a list of repositories for an account’ request

Parameters:

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

Returns:

See Also:



16
17
18
19
20
21
22
23
24
25
# File 'lib/tinybucket/api/repos_api.rb', line 16

def list(options = {})
  opts = options.clone
  opts.delete(:owner)

  get_path(
    path_to_list(options),
    opts,
    get_parser(:collection, Tinybucket::Model::Repository)
  )
end