Class: TreeHaver::ProviderDiagnostic

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockingObject

Returns the value of attribute blocking

Returns:

  • (Object)

    the current value of blocking



378
379
380
# File 'lib/tree_haver/contracts.rb', line 378

def blocking
  @blocking
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



378
379
380
# File 'lib/tree_haver/contracts.rb', line 378

def category
  @category
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



378
379
380
# File 'lib/tree_haver/contracts.rb', line 378

def code
  @code
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



378
379
380
# File 'lib/tree_haver/contracts.rb', line 378

def message
  @message
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



378
379
380
# File 'lib/tree_haver/contracts.rb', line 378

def path
  @path
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



378
379
380
# File 'lib/tree_haver/contracts.rb', line 378

def severity
  @severity
end

Instance Method Details

#to_hObject



379
380
381
382
383
384
385
386
387
388
# File 'lib/tree_haver/contracts.rb', line 379

def to_h
  {
    severity: severity,
    category: category,
    code: code,
    message: message,
    path: path,
    blocking: blocking
  }
end