Class: HealthyRack::Check

Inherits:
Object
  • Object
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

#callObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/healthy_rack/check.rb', line 15

def call
  raise NotImplementedError
end

#hashObject



24
25
26
# File 'lib/healthy_rack/check.rb', line 24

def hash
  name.hash
end

#nameObject

Raises:

  • (NotImplementedError)


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? # Anonymous Classes

  demodulized = Utils::String.demodulize(class_name)
  Utils::String.underscore(demodulized)
end

#verifyObject



5
# File 'lib/healthy_rack/check.rb', line 5

def verify; end