Class: TreeHaver::BackendAvailabilityReport

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backend_refObject

Returns the value of attribute backend_ref

Returns:

  • (Object)

    the current value of backend_ref



367
368
369
# File 'lib/tree_haver/contracts.rb', line 367

def backend_ref
  @backend_ref
end

#checksObject

Returns the value of attribute checks

Returns:

  • (Object)

    the current value of checks



367
368
369
# File 'lib/tree_haver/contracts.rb', line 367

def checks
  @checks
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



367
368
369
# File 'lib/tree_haver/contracts.rb', line 367

def diagnostics
  @diagnostics
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



367
368
369
# File 'lib/tree_haver/contracts.rb', line 367

def status
  @status
end

Instance Method Details

#to_hObject



368
369
370
371
372
373
374
375
# File 'lib/tree_haver/contracts.rb', line 368

def to_h
  {
    backend_ref: backend_ref.to_h,
    status: status,
    checks: (checks || []).map(&:to_h),
    diagnostics: diagnostics || []
  }
end