Sha256: 021344b35f121319db4dd7dc09867fc9d361beea5b4cefeb08aa13972a0b19be

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

class Fog::Storage::Backblaze::Directories < Fog::Collection
  model Fog::Storage::Backblaze::Directory

  def all
    data = service.list_buckets
    load(data.body['buckets'])
  end

  def get(name)
    list_response = service.list_buckets
    bucket = list_response.json['buckets'].detect {|bucket| bucket['bucketName'] == name }
    return new(bucket) if bucket
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-backblaze-0.2.0 lib/fog/storage/backblaze/models/directories.rb
fog-backblaze-0.1.2 lib/fog/storage/backblaze/models/directories.rb