class Fog::Compute::Gridscale::Buckets

Public Instance Methods

all(filters={}) click to toggle source
# File lib/fog/compute/gridscale/models/buckets.rb, line 10
def all(filters={})
  data = service.buckets_get(filters)
  droplets = data.body["buckets"]
  load(droplets)
end
get(name) click to toggle source
# File lib/fog/compute/gridscale/models/buckets.rb, line 16
def get(name)
  bucket = service.bucket_get(name).body
  new(bucket) if bucket
rescue Fog::Errors::NotFound
  nil
end