Class: HealthyRack::Check
- Inherits:
-
Object
- Object
- HealthyRack::Check
show all
- Defined in:
- lib/healthy_rack/check.rb
Instance Method Summary
collapse
Instance Method Details
#==(other) ⇒ Object
Also known as:
eql?
19
20
21
|
# File 'lib/healthy_rack/check.rb', line 19
def ==(other)
self.class == other.class && name == other.name
end
|
#call ⇒ Object
15
16
17
|
# File 'lib/healthy_rack/check.rb', line 15
def call
raise NotImplementedError
end
|
#hash ⇒ Object
24
25
26
|
# File 'lib/healthy_rack/check.rb', line 24
def hash
name.hash
end
|
#name ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/healthy_rack/check.rb', line 7
def name
class_name = self.class.name
raise NotImplementedError if class_name.nil?
demodulized = Utils::String.demodulize(class_name)
Utils::String.underscore(demodulized)
end
|
#verify ⇒ Object
5
|
# File 'lib/healthy_rack/check.rb', line 5
def verify; end
|