Class: Rx::Check::GenericCheck
- Inherits:
-
Object
- Object
- Rx::Check::GenericCheck
- Defined in:
- lib/rx/check/generic_check.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(callable, name = "generic", timeout = 0) ⇒ GenericCheck
constructor
A new instance of GenericCheck.
Constructor Details
#initialize(callable, name = "generic", timeout = 0) ⇒ GenericCheck
Returns a new instance of GenericCheck.
8 9 10 11 12 |
# File 'lib/rx/check/generic_check.rb', line 8 def initialize(callable, name = "generic", timeout = 0) @callable = callable @name = name @timeout = timeout end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/rx/check/generic_check.rb', line 6 def name @name end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/rx/check/generic_check.rb', line 6 def timeout @timeout end |