Class: Miasma::Models::Compute::Servers

Inherits:
Types::Collection show all
Defined in:
lib/miasma/models/compute/servers.rb

Overview

Abstract server 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<Server>) filter(options = {})

Return servers matching given filter

Parameters:

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

    filter options

Options Hash (options):

  • :state (String)

    current instance state

Returns:

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/miasma/models/compute/servers.rb', line 15

def filter(options={})
  raise NotImplementedError
end

- (Server) model

Returns collection item class

Returns:

  • (Server)

    collection item class



20
21
22
# File 'lib/miasma/models/compute/servers.rb', line 20

def model
  Server
end