Class: HealthyRack::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/healthy_rack/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
# File 'lib/healthy_rack/configuration.rb', line 7

def initialize
  setup
end

Instance Attribute Details

#checksObject (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

#resetObject



11
12
13
# File 'lib/healthy_rack/configuration.rb', line 11

def reset
  setup
end