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
Attributes inherited from Types::Model
Instance Method Summary collapse
- #files ⇒ Files
-
#filter(filter = {}) ⇒ Array<Bucket>
Filter buckets.
Methods inherited from Types::Model
#destroy, from_json, #id?, #initialize, #persisted?, #reload, #save
Methods included from Utils::ApiMethoding
Methods inherited from Types::Data
from_json, #from_json, #initialize, #to_json
Constructor Details
This class inherits a constructor from Miasma::Types::Model
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 |
#filter(filter = {}) ⇒ Array<Bucket>
Filter buckets
24 25 26 |
# File 'lib/miasma/models/storage/bucket.rb', line 24 def filter(filter={}) raise NotImplementedError end |