Class: Miasma::Models::LoadBalancer::Balancer
- Inherits:
-
Types::Model
- Object
- Types::Data
- Types::Model
- Miasma::Models::LoadBalancer::Balancer
- Defined in:
- lib/miasma/models/load_balancer/balancer.rb
Overview
Abstract balancer
Defined Under Namespace
Classes: Address, HealthCheck, Listener, Server
Instance Attribute Summary
Attributes inherited from Types::Model
Instance Method Summary collapse
-
#addresses ⇒ Array<Address>
All addresses.
Methods inherited from Types::Model
#destroy, from_json, #id?, #initialize, #persisted?, #reload, #save
Methods included from Utils::Memoization
#_memo, #clear_memoizations!, #memoize, #unmemoize
Methods inherited from Types::Data
from_json, #from_json, #initialize, #to_json
Methods included from Utils::Lazy
Constructor Details
This class inherits a constructor from Miasma::Types::Model
Instance Method Details
#addresses ⇒ Array<Address>
Returns all addresses.
48 49 50 |
# File 'lib/miasma/models/load_balancer/balancer.rb', line 48 def addresses public_addresses + private_addresses end |