Class: Miasma::Models::Storage::Buckets
- Inherits:
-
Types::Collection
- Object
- Types::Collection
- Miasma::Models::Storage::Buckets
- Defined in:
- lib/miasma/models/storage/buckets.rb
Overview
Abstract bucket collection
Instance Attribute Summary (collapse)
-
- (Miasma::Api) api
inherited
from Types::Collection
readonly
Underlying service API.
Instance Method Summary (collapse)
-
- (Bucket) build(args = {})
New unsaved instance.
-
- (Bucket) model
Collection item class.
Constructor Details
This class inherits a constructor from Miasma::Types::Collection
Instance Attribute Details
- (Miasma::Api) api (readonly) Originally defined in class Types::Collection
Returns underlying service API
Instance Method Details
- (Bucket) build(args = {})
Returns new unsaved instance
12 13 14 |
# File 'lib/miasma/models/storage/buckets.rb', line 12 def build(args={}) Bucket.new(api, args.to_smash) end |
- (Bucket) model
Returns collection item class
17 18 19 |
# File 'lib/miasma/models/storage/buckets.rb', line 17 def model Bucket end |