Class: Miasma::Models::Storage::Buckets

Inherits:
Types::Collection show all
Defined in:
lib/miasma/models/storage/buckets.rb

Overview

Abstract bucket collection

Instance Attribute Summary

Attributes inherited from Types::Collection

#api

Instance Method Summary collapse

Methods inherited from Types::Collection

#all, #filter, #from_json, #get, #initialize, #reload, #to_json

Methods included from Utils::Memoization

#_memo, #clear_memoizations!, #memoize, #unmemoize

Constructor Details

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

Instance Method Details

#build(args = {}) ⇒ Bucket

Returns new unsaved instance.

Returns:

  • (Bucket)

    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

#modelBucket

Returns collection item class.

Returns:

  • (Bucket)

    collection item class



17
18
19
# File 'lib/miasma/models/storage/buckets.rb', line 17

def model
  Bucket
end