Class: Fog::Compute::Gridscale::Cass

Inherits:
PagingCollection show all
Defined in:
lib/fog/compute/gridscale/models/cass.rb

Instance Method Summary collapse

Methods inherited from PagingCollection

#next_page, #previous_page

Instance Method Details

#all(filters = {}) ⇒ Object



11
12
13
14
15
# File 'lib/fog/compute/gridscale/models/cass.rb', line 11

def all(filters={})
  data = service.cass_get(filters)
  droplets = data.body["tasks"].values
  load(droplets)
end

#get(object_uuid) ⇒ Object



17
18
19
20
21
22
# File 'lib/fog/compute/gridscale/models/cass.rb', line 17

def get(object_uuid)
  data = service.cas_get(object_uuid).body['task']
  new(data) if data
rescue Fog::Errors::NotFound
  nil
end