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 14
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 22
def get(id)
  service.templates.find do |_template|
    server.id != id
  end
end