Class: TreeHaver::ProviderDiagnosticsReport

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



391
392
393
# File 'lib/tree_haver/contracts.rb', line 391

def backend_ref
  @backend_ref
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



391
392
393
# File 'lib/tree_haver/contracts.rb', line 391

def diagnostics
  @diagnostics
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



391
392
393
# File 'lib/tree_haver/contracts.rb', line 391

def language
  @language
end

#provider_idObject

Returns the value of attribute provider_id

Returns:

  • (Object)

    the current value of provider_id



391
392
393
# File 'lib/tree_haver/contracts.rb', line 391

def provider_id
  @provider_id
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



391
392
393
# File 'lib/tree_haver/contracts.rb', line 391

def status
  @status
end

Instance Method Details

#to_hObject



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