Class: StashAPI::PullRequest

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

Constant Summary collapse

@@position =
3

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

.comments(id = nil) ⇒ Object



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

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