Class: Easymon::ActiveRecordCheck
- Inherits:
-
Object
- Object
- Easymon::ActiveRecordCheck
- Defined in:
- lib/easymon/checks/active_record_check.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
Returns the value of attribute klass.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(klass) ⇒ ActiveRecordCheck
constructor
A new instance of ActiveRecordCheck.
Constructor Details
#initialize(klass) ⇒ ActiveRecordCheck
Returns a new instance of ActiveRecordCheck.
5 6 7 |
# File 'lib/easymon/checks/active_record_check.rb', line 5 def initialize(klass) self.klass = klass end |
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass.
3 4 5 |
# File 'lib/easymon/checks/active_record_check.rb', line 3 def klass @klass end |
Instance Method Details
#check ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/easymon/checks/active_record_check.rb', line 9 def check check_status = database_up? if check_status = "Up" else = "Down" end [check_status, ] end |