Class: Healthchecker::Check
- Inherits:
-
Object
- Object
- Healthchecker::Check
- Defined in:
- lib/healthchecker/check.rb
Direct Known Subclasses
Healthchecker::Checks::Cache, Healthchecker::Checks::Database, Healthchecker::Checks::Dynamodb, Healthchecker::Checks::Migration, Healthchecker::Checks::Redis, Healthchecker::Checks::S3, Healthchecker::Checks::Solr
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #check! ⇒ Object
-
#initialize(options = {}) ⇒ Check
constructor
A new instance of Check.
- #perform_check ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Check
Returns a new instance of Check.
5 6 7 |
# File 'lib/healthchecker/check.rb', line 5 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/healthchecker/check.rb', line 3 def @options end |
Instance Method Details
#check! ⇒ Object
9 |
# File 'lib/healthchecker/check.rb', line 9 def check!; raise NotImplementedError; end |
#perform_check ⇒ Object
11 12 13 14 15 |
# File 'lib/healthchecker/check.rb', line 11 def perform_check check! rescue RuntimeError => e [e.class, e., ] end |