Class: TreeHaver::BackendAvailabilityCheck
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BackendAvailabilityCheck
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#name ⇒ Object
Returns the value of attribute name.
-
#required ⇒ Object
Returns the value of attribute required.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
356 357 358 |
# File 'lib/tree_haver/contracts.rb', line 356 def diagnostics @diagnostics end |
#name ⇒ Object
Returns the value of attribute name
356 357 358 |
# File 'lib/tree_haver/contracts.rb', line 356 def name @name end |
#required ⇒ Object
Returns the value of attribute required
356 357 358 |
# File 'lib/tree_haver/contracts.rb', line 356 def required @required end |
#status ⇒ Object
Returns the value of attribute status
356 357 358 |
# File 'lib/tree_haver/contracts.rb', line 356 def status @status end |
Instance Method Details
#to_h ⇒ Object
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 |