Class: Miasma::Models::LoadBalancer::Balancer

Inherits:
Types::Model show all
Defined in:
lib/miasma/models/load_balancer/balancer.rb

Overview

Abstract balancer

Defined Under Namespace

Classes: Address, HealthCheck, Listener, Server, ServerState

Instance Attribute Summary

Attributes inherited from Types::Model

#api

Instance Method Summary collapse

Methods inherited from Types::Model

#destroy, from_json, #id?, #initialize, #persisted?, #reload, #save

Methods included from Utils::ApiMethoding

#api_method_for

Methods inherited from Types::Data

from_json, #from_json, #initialize, #to_json

Constructor Details

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

Instance Method Details

#addressesArray<Address>

Returns all addresses.

Returns:

  • (Array<Address>)

    all addresses



55
56
57
# File 'lib/miasma/models/load_balancer/balancer.rb', line 55

def addresses
  public_addresses + private_addresses
end