Class: RailsHealthChecks::Check

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_health_checks/check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#latency_msObject (readonly)

Returns the value of attribute latency_ms.



5
6
7
# File 'lib/rails_health_checks/check.rb', line 5

def latency_ms
  @latency_ms
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/rails_health_checks/check.rb', line 5

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/rails_health_checks/check.rb', line 5

def status
  @status
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/rails_health_checks/check.rb', line 7

def call
  raise NotImplementedError, "#{self.class} must implement #call"
end