Class: Pgbus::Doctor::Check

Inherits:
Struct
  • Object
show all
Defined in:
lib/pgbus/doctor.rb

Overview

A single check result. status is one of :ok, :warn, :fail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



20
21
22
# File 'lib/pgbus/doctor.rb', line 20

def detail
  @detail
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/pgbus/doctor.rb', line 20

def name
  @name
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



20
21
22
# File 'lib/pgbus/doctor.rb', line 20

def status
  @status
end

Instance Method Details

#to_hObject



21
22
23
# File 'lib/pgbus/doctor.rb', line 21

def to_h
  { name: name, status: status, detail: detail }
end