lib/heartcheck/checks/base.rb in heartcheck-1.1.1 vs lib/heartcheck/checks/base.rb in heartcheck-1.2.0

- old
+ new

@@ -117,9 +117,17 @@ { name => { 'status' => (@errors.empty? ? 'ok' : 'error') } }.tap do |response| response[name]['message'] = error_message unless @errors.empty? end end + # Returns a human-readable representation of the check + # + # @return [String] + def inspect + "#<#{self.class.name} name: #{name}, functional: #{functional?}, dev: #{dev?}>" + end + + def informations info rescue => e { 'error' => e.message } end