Class: HealthyRack::Configuration
- Inherits:
-
Object
- Object
- HealthyRack::Configuration
- Defined in:
- lib/healthy_rack/configuration.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
Instance Method Summary collapse
- #add_checks(*checks_to_add) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/healthy_rack/configuration.rb', line 7 def initialize setup end |
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks.
5 6 7 |
# File 'lib/healthy_rack/configuration.rb', line 5 def checks @checks end |
Instance Method Details
#add_checks(*checks_to_add) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/healthy_rack/configuration.rb', line 15 def add_checks(*checks_to_add) checks_to_add.each do |check| check.verify checks.add(check) end end |
#reset ⇒ Object
11 12 13 |
# File 'lib/healthy_rack/configuration.rb', line 11 def reset setup end |