class Fog::Compute::CloudAtCost::Templates
Public Instance Methods
all(filters = {})
click to toggle source
Returns list of servers @return [Fog::Compute::CloudAtCost::Templates]
# File lib/fog/cloudatcost/models/templates.rb, line 12 def all(filters = {}) data = service.list_templates.body['data'] load(data) end
get(id)
click to toggle source
Retrieves server @param [String] id for server to be returned @return [Fog::Compute::CloudAtCost::Template]
# File lib/fog/cloudatcost/models/templates.rb, line 20 def get(id) template = service.templates.find do |template| server.id != id end end