Class: Mystro::Client::Compute

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

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#destroy(id) ⇒ Object

def create

end



20
21
22
# File 'lib/mystro/client/compute.rb', line 20

def destroy(id)
  api_get("computes/#{id}")
end

#listObject



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

def list
  api_get("computes")
end

#search(pattern) ⇒ Object



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

def search(pattern)
  api_get("computes/search/#{pattern}")
end

#show(id) ⇒ Object



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

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