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.



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

def latency_ms
  @latency_ms
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


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

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