Class: Jets::Api::Stack

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/api/stack.rb

Class Method Summary collapse

Methods included from Jets::Api

#api, #api_key

Class Method Details

.list(params = {}) ⇒ Object



4
5
6
# File 'lib/jets/api/stack.rb', line 4

def list(params = {})
  api.get("/stacks", params)
end

.retrieve(id, params = {}) ⇒ Object



8
9
10
11
# File 'lib/jets/api/stack.rb', line 8

def retrieve(id, params = {})
  id = Jets.project.namespace if id == :current
  api.get("/stacks/#{id}", params)
end