lib/mongo/monitoring/event/server_opening.rb in mongo-2.6.4 vs lib/mongo/monitoring/event/server_opening.rb in mongo-2.7.0.rc0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2016-2018 MongoDB, Inc.
+# Copyright (C) 2016-2019 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -43,12 +43,16 @@
# Returns a concise yet useful summary of the event.
#
# @return [ String ] String summary of the event.
#
- # @since 2.6.0
- def inspect
- "#<#{self.class} address=#{address} topology=#{topology.class.name.sub(/.*::/, '')}>"
+ # @note This method is experimental and subject to change.
+ #
+ # @since 2.7.0
+ # @api experimental
+ def summary
+ "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" +
+ " address=#{address} topology=#{topology.summary}>"
end
end
end
end
end