Class: StashAPI::Project

Inherits:
Resource show all
Defined in:
lib/stash_api/project.rb

Constant Summary collapse

@@position =
1

Class Method Summary collapse

Methods inherited from Resource

add_resource_to_chain, create_resource, fetch, raise_resource_key_missing, reset_resource_chain, resource, resource_id, resource_path

Class Method Details

.repos(id = nil) ⇒ Object



6
7
8
9
10
# File 'lib/stash_api/project.rb', line 6

def repos(id = nil)
  raise_resource_key_missing if resource_id(@@position - 1) == nil
  add_resource_to_chain @@position, 'repos', id
  Repo
end