Class: Healthcheck::Check
- Inherits:
-
Object
- Object
- Healthcheck::Check
- Defined in:
- lib/healthcheck/check.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(name, block) ⇒ Check
constructor
A new instance of Check.
Constructor Details
#initialize(name, block) ⇒ Check
Returns a new instance of Check.
7 8 9 10 |
# File 'lib/healthcheck/check.rb', line 7 def initialize(name, block) @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
5 6 7 |
# File 'lib/healthcheck/check.rb', line 5 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/healthcheck/check.rb', line 5 def name @name end |
Instance Method Details
#execute! ⇒ Object
12 13 14 |
# File 'lib/healthcheck/check.rb', line 12 def execute! block.call end |