Class: Fog::Compute::CloudAtCost::Templates
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::CloudAtCost::Templates
- Defined in:
- lib/fog/cloudatcost/models/templates.rb
Instance Method Summary collapse
-
#all(_filters = {}) ⇒ Fog::Compute::CloudAtCost::Templates
Returns list of servers.
-
#get(id) ⇒ Fog::Compute::CloudAtCost::Template
Retrieves server.
Instance Method Details
#all(_filters = {}) ⇒ Fog::Compute::CloudAtCost::Templates
Returns list of servers
14 15 16 17 |
# File 'lib/fog/cloudatcost/models/templates.rb', line 14 def all(_filters = {}) data = service.list_templates.body['data'] load(data) end |
#get(id) ⇒ Fog::Compute::CloudAtCost::Template
Retrieves server
22 23 24 25 26 |
# File 'lib/fog/cloudatcost/models/templates.rb', line 22 def get(id) service.templates.find do |_template| server.id != id end end |