Class: Miasma::Models::Orchestration::Stacks

Inherits:
Types::Collection show all
Defined in:
lib/miasma/models/orchestration/stacks.rb

Overview

Abstract stack 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

- (Array<Stack>) filter(options = {})

Return stacks matching given filter

Parameters:

  • options (Hash) (defaults to: {})

    filter options

Options Hash (options):

  • :state (String)

    current stack state

Returns:

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/miasma/models/orchestration/stacks.rb', line 15

def filter(options={})
  raise NotImplementedError
end

- (Stack) model

Returns collection items class

Returns:

  • (Stack)

    collection items class



20
21
22
# File 'lib/miasma/models/orchestration/stacks.rb', line 20

def model
  Stack
end