Class: Tinybucket::Api::ProjectsApi

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

Constant Summary

Constants included from Connection

Connection::DEFAULT_USER_AGENT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Connection

#caching?, #clear_cache, #connection

Instance Attribute Details

#ownerObject

Returns the value of attribute owner.



7
8
9
# File 'lib/tinybucket/api/projects_api.rb', line 7

def owner
  @owner
end

Instance Method Details

#find(project_key, options = {}) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/tinybucket/api/projects_api.rb', line 17

def find(project_key, options = {})
  get_path(
    path_to_find(owner, project_key),
    options,
    get_parser(:object, Tinybucket::Model::Project)
  )
end

#list(options = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/tinybucket/api/projects_api.rb', line 9

def list(options = {})
  get_path(
    path_to_list(owner),
    options,
    get_parser(:collection, Tinybucket::Model::Project)
  )
end