Class: StashAPI::Core

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

Constant Summary collapse

@@position =
0

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

.projects(id = nil) ⇒ Object



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

def projects(id = nil)
  add_resource_to_chain @@position, 'projects', id
  Project
end

.users(id = nil) ⇒ Object



11
12
13
14
# File 'lib/stash_api/core.rb', line 11

def users(id = nil)
  add_resource_to_chain @@position, 'users', id
  User
end