Class: TreeHaver::BackendAvailabilityCheck

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



356
357
358
# File 'lib/tree_haver/contracts.rb', line 356

def diagnostics
  @diagnostics
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



356
357
358
# File 'lib/tree_haver/contracts.rb', line 356

def name
  @name
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



356
357
358
# File 'lib/tree_haver/contracts.rb', line 356

def required
  @required
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



356
357
358
# File 'lib/tree_haver/contracts.rb', line 356

def status
  @status
end

Instance Method Details

#to_hObject



357
358
359
360
361
362
363
364
# File 'lib/tree_haver/contracts.rb', line 357

def to_h
  {
    name: name,
    status: status,
    required: required,
    diagnostics: diagnostics || []
  }
end