class Fog::Compute::Gridscale::MarketplaceTemplates
Public Instance Methods
all(filters={})
click to toggle source
# File lib/fog/compute/gridscale/models/marketplace_templates.rb, line 10 def all(filters={}) data = service.marketplace_templates_get(filters) droplets = data.body["marketplace_templates"].values load(droplets) end
get(object_uuid)
click to toggle source
# File lib/fog/compute/gridscale/models/marketplace_templates.rb, line 17 def get(object_uuid) marketplace_template = service.marketplace_template_get(object_uuid).body['marketplace_template'] new(marketplace_template) if marketplace_template rescue Fog::Errors::NotFound nil end