Class: Fog::Compute::Gridscale::Cass
Instance Method Summary
collapse
#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
|