ServerOpening — Documentation by YARD 0.9.37 (original) (raw)

Class: Mongo::Monitoring::Event::ServerOpening

Overview

Event fired when the server is opening.

Instance Attribute Summary collapse

Instance Method Summarycollapse

Constructor Details

#initialize(address, topology) ⇒ ServerOpening

42 43 44 45 # File 'lib/mongo/monitoring/event/server_opening.rb', line 42 def initialize(address, topology) @address = address @topology = topology end

Instance Attribute Details

#addressAddress

Returns address The server address.

28 29 30 # File 'lib/mongo/monitoring/event/server_opening.rb', line 28 def address @address end

#topology ⇒ Topology

Returns topology The topology.

31 32 33 # File 'lib/mongo/monitoring/event/server_opening.rb', line 31 def topology @topology end

Instance Method Details

#summary ⇒ String

Note:

This method is experimental and subject to change.

Returns a concise yet useful summary of the event.

55 56 57 58 # File 'lib/mongo/monitoring/event/server_opening.rb', line 55 def summary "#<#{short_class_name}" + " address=#{address} topology=#{topology.summary}>" end