Class: TreeHaver::BackendAvailabilityReport
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BackendAvailabilityReport
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#backend_ref ⇒ Object
Returns the value of attribute backend_ref
367 368 369 |
# File 'lib/tree_haver/contracts.rb', line 367 def backend_ref @backend_ref end |
#checks ⇒ Object
Returns the value of attribute checks
367 368 369 |
# File 'lib/tree_haver/contracts.rb', line 367 def checks @checks end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
367 368 369 |
# File 'lib/tree_haver/contracts.rb', line 367 def diagnostics @diagnostics end |
#status ⇒ Object
Returns the value of attribute status
367 368 369 |
# File 'lib/tree_haver/contracts.rb', line 367 def status @status end |
Instance Method Details
#to_h ⇒ Object
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 |