Class: HealthMonitor::Providers::Base::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/health_monitor/providers/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ Configuration

Returns a new instance of Configuration.



13
14
15
16
# File 'lib/health_monitor/providers/base.rb', line 13

def initialize(provider)
  @name = provider.class.name.demodulize
  @critical = true
end

Instance Attribute Details

#criticalObject

Returns the value of attribute critical.



11
12
13
# File 'lib/health_monitor/providers/base.rb', line 11

def critical
  @critical
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/health_monitor/providers/base.rb', line 11

def name
  @name
end