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 (collapse)

Instance Method Summary (collapse)

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

Returns:

  • (Miasma::Api)

    underlying service API

Instance Method Details

- (Bucket) build(args = {})

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

- (Bucket) model

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