class Mongo::Event::Base

Base class for all events.

@since 2.6.0

Public Instance Methods

summary() click to toggle source

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

@return [ String ] String summary of the event.

@note This method is experimental and subject to change.

@since 2.7.0 @api experimental

# File lib/mongo/event/base.rb, line 31
def summary
  "#<#{self.class}>"
end

Private Instance Methods

short_class_name() click to toggle source
# File lib/mongo/event/base.rb, line 37
def short_class_name
  self.class.name.sub(/^Mongo::Monitoring::Event::/, '')
end