class AbrilHeartbeat::MongoWrapper
Public Class Methods
check_status!()
click to toggle source
# File lib/abril_heartbeat/wrappers/mongo_wrapper.rb, line 3 def self.check_status! ::Mongoid.default_session.command(ping: 1) end
client?()
click to toggle source
# File lib/abril_heartbeat/wrappers/mongo_wrapper.rb, line 7 def self.client? !!defined?(Mongoid) end