Class: Miasma::Models::Storage::Bucket

Inherits:
Types::Model show all
Defined in:
lib/miasma/models/storage/bucket.rb

Overview

Abstract bucket

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

This class inherits a constructor from Miasma::Types::Model

Instance Attribute Details

- (Miasma::Types::Api) api (readonly) Originally defined in class Types::Model

Returns underlying service API

Returns:

Instance Method Details

- (Files) files

Returns:



14
15
16
17
18
# File 'lib/miasma/models/storage/bucket.rb', line 14

def files
  memoize(:files) do
    Files.new(self)
  end
end

- (Array<Bucket>) filter(filter = {})

Filter buckets

Parameters:

  • filter (Hash) (defaults to: {})

Returns:

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/miasma/models/storage/bucket.rb', line 24

def filter(filter={})
  raise NotImplementedError
end