Class: Miasma::Models::Storage::Bucket
- Inherits:
-
Types::Model
- Object
- Types::Data
- Types::Model
- Miasma::Models::Storage::Bucket
- Defined in:
- lib/miasma/models/storage/bucket.rb
Overview
Abstract bucket
Instance Attribute Summary (collapse)
-
- (Miasma::Types::Api) api
inherited
from Types::Model
readonly
Underlying service API.
Instance Method Summary (collapse)
- - (Files) files
-
- (Array<Bucket>) filter(filter = {})
Filter buckets.
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
Instance Method Details
- (Files) files
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
24 25 26 |
# File 'lib/miasma/models/storage/bucket.rb', line 24 def filter(filter={}) raise NotImplementedError end |