Class: Mystro::Client::Environment

Inherits:
Base
  • Object
show all
Defined in:
lib/mystro/client/environment.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mystro::Client::Base

Instance Method Details

#create(name, template, protected) ⇒ Object



12
13
14
# File 'lib/mystro/client/environment.rb', line 12

def create(name, template, protected)
  api_post("environments", { name: nil, template: nil, protected: protected })
end

#destroy(id) ⇒ Object



16
17
18
# File 'lib/mystro/client/environment.rb', line 16

def destroy(id)
  api_delete("environments/#{id}")
end

#listObject



4
5
6
# File 'lib/mystro/client/environment.rb', line 4

def list
  api_get("environments")
end

#show(id) ⇒ Object



8
9
10
# File 'lib/mystro/client/environment.rb', line 8

def show(id)
  api_get("environments/#{id}")
end