123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Event::Base

Overview

Base class for all events.

Since:

  • 2.6.0

Instance Method Summary

Instance Method Details

#short_class_name (private)

Since:

  • 2.6.0

[ GitHub ]

  
# File 'lib/mongo/event/base.rb', line 40

def short_class_name
  self.class.name.sub(/^Mongo::Monitoring::Event::/, '')
end

#summaryString

Note:

This method is experimental and subject to change.

Returns a concise yet useful summary of the event. Meant to be overridden in derived classes.

Returns:

  • (String)

    String summary of the event.

Since:

  • 2.7.0

[ GitHub ]

  
# File 'lib/mongo/event/base.rb', line 34

def summary
  "#<#{self.class}>"
end