Class: Fog::Compute::Gridscale::Buckets
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/buckets.rb', line 11
def all(filters={})
data = service.buckets_get(filters)
droplets = data.body["buckets"]
load(droplets)
end
|
#get(name) ⇒ Object
17
18
19
20
21
22
|
# File 'lib/fog/compute/gridscale/models/buckets.rb', line 17
def get(name)
bucket = service.bucket_get(name).body
new(bucket) if bucket
rescue Fog::Errors::NotFound
nil
end
|