Class: Miasma::Models::LoadBalancer::Balancers

Inherits:
Types::Collection show all
Defined in:
lib/miasma/models/load_balancer/balancers.rb

Overview

Abstract load balancer collection

Instance Attribute Summary

Attributes inherited from Types::Collection

#api

Instance Method Summary collapse

Methods inherited from Types::Collection

#all, #build, #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

#filter(options = {}) ⇒ Array<Balancer>

Return load balancers matching given filter

Parameters:

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

    filter options

Returns:

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/miasma/models/load_balancer/balancers.rb', line 14

def filter(options={})
  raise NotImplementedError
end

#modelBalancer

Returns collection item class.

Returns:



19
20
21
# File 'lib/miasma/models/load_balancer/balancers.rb', line 19

def model
  Balancer
end