Class: Mongo::Server::Description::LoadBalancer

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo/server/description/load_balancer.rb

Overview

Represents an assumed description of servers behind load balancers.

Since:

  • 2.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address) ⇒ LoadBalancer

Returns a new instance of LoadBalancer.

Since:

  • 2.0.0



24
25
26
# File 'lib/mongo/server/description/load_balancer.rb', line 24

def initialize(address)
  @address = address
end

Instance Attribute Details

#addressAddress (readonly)

Returns address The server’s address.

Returns:

  • (Address)

    address The server’s address.

Since:

  • 2.0.0



29
30
31
# File 'lib/mongo/server/description/load_balancer.rb', line 29

def address
  @address
end