Class: StashAPI::Repo

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

Constant Summary collapse

@@position =
2

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

.pull_requests(id = nil) ⇒ Object



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

def pull_requests(id = nil)
  raise_resource_key_missing if resource_id(@@position - 1) == nil
  add_resource_to_chain @@position, 'pull-requests', id
  PullRequest
end