Class: TreeHaver::ProviderDiagnosticsReport
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ProviderDiagnosticsReport
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#language ⇒ Object
Returns the value of attribute language.
-
#provider_id ⇒ Object
Returns the value of attribute provider_id.
-
#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
391 392 393 |
# File 'lib/tree_haver/contracts.rb', line 391 def backend_ref @backend_ref end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
391 392 393 |
# File 'lib/tree_haver/contracts.rb', line 391 def diagnostics @diagnostics end |
#language ⇒ Object
Returns the value of attribute language
391 392 393 |
# File 'lib/tree_haver/contracts.rb', line 391 def language @language end |
#provider_id ⇒ Object
Returns the value of attribute provider_id
391 392 393 |
# File 'lib/tree_haver/contracts.rb', line 391 def provider_id @provider_id end |
#status ⇒ Object
Returns the value of attribute status
391 392 393 |
# File 'lib/tree_haver/contracts.rb', line 391 def status @status end |
Instance Method Details
#to_h ⇒ Object
393 394 395 396 397 398 399 400 401 |
# File 'lib/tree_haver/contracts.rb', line 393 def to_h { provider_id: provider_id, backend_ref: backend_ref.to_h, language: language, status: status, diagnostics: (diagnostics || []).map(&:to_h) } end |