Class: HealthMonitor::Providers::Base
- Inherits:
-
Object
- Object
- HealthMonitor::Providers::Base
- Extended by:
- Forwardable
- Defined in:
- lib/health_monitor/providers/base.rb
Defined Under Namespace
Classes: Configuration
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
- #check! ⇒ Object abstract
- #configure {|@configuration| ... } ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
24 25 26 |
# File 'lib/health_monitor/providers/base.rb', line 24 def initialize @configuration = configuration_class.new(self) end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
20 21 22 |
# File 'lib/health_monitor/providers/base.rb', line 20 def configuration @configuration end |
#request ⇒ Object
Returns the value of attribute request.
19 20 21 |
# File 'lib/health_monitor/providers/base.rb', line 19 def request @request end |
Instance Method Details
#check! ⇒ Object
This method is abstract.
33 34 35 |
# File 'lib/health_monitor/providers/base.rb', line 33 def check! raise NotImplementedError end |
#configure {|@configuration| ... } ⇒ Object
28 29 30 |
# File 'lib/health_monitor/providers/base.rb', line 28 def configure yield @configuration if block_given? end |