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
Attributes inherited from Types::Collection
Instance Method Summary collapse
-
#build(args = {}) ⇒ Bucket
New unsaved instance.
-
#model ⇒ Bucket
Collection item class.
Methods inherited from Types::Collection
#all, #filter, #from_json, #get, #initialize, #reload, #to_json
Methods included from Utils::ApiMethoding
Constructor Details
This class inherits a constructor from Miasma::Types::Collection
Instance Method Details
#build(args = {}) ⇒ Bucket
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 |
#model ⇒ Bucket
Returns collection item class.
17 18 19 |
# File 'lib/miasma/models/storage/buckets.rb', line 17 def model Bucket end |