Class: Mongo::Monitoring::Event::TopologyClosed
- Inherits:
-
Event::Base
- Object
- Event::Base
- Mongo::Monitoring::Event::TopologyClosed
- Defined in:
- lib/mongo/monitoring/event/topology_closed.rb
Overview
Event fired when the topology closes.
Instance Attribute Summary collapse
-
#topology ⇒ Topology
readonly
Topology The topology.
Instance Method Summary collapse
-
#initialize(topology) ⇒ TopologyClosed
constructor
Create the event.
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
Constructor Details
#initialize(topology) ⇒ TopologyClosed
Create the event.
35 36 37 |
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 35 def initialize(topology) @topology = topology end |
Instance Attribute Details
#topology ⇒ Topology (readonly)
Returns topology The topology.
25 26 27 |
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 25 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.
47 48 49 50 |
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 47 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" + " topology=#{topology.summary}>" end |