Class: Mongo::Server::Description::LoadBalancer
- Inherits:
-
Object
- Object
- Mongo::Server::Description::LoadBalancer
- Defined in:
- lib/mongo/server/description/load_balancer.rb
Overview
Represents an assumed description of servers behind load balancers.
Instance Attribute Summary collapse
-
#address ⇒ Address
readonly
Address The server’s address.
Instance Method Summary collapse
-
#initialize(address) ⇒ LoadBalancer
constructor
A new instance of LoadBalancer.
Constructor Details
#initialize(address) ⇒ LoadBalancer
Returns a new instance of LoadBalancer.
24 25 26 |
# File 'lib/mongo/server/description/load_balancer.rb', line 24 def initialize(address) @address = address end |
Instance Attribute Details
#address ⇒ Address (readonly)
Returns address The server’s address.
29 30 31 |
# File 'lib/mongo/server/description/load_balancer.rb', line 29 def address @address end |