Class: TreeHaver::LibraryPathValidation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



346
347
348
# File 'lib/tree_haver/contracts.rb', line 346

def errors
  @errors
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



346
347
348
# File 'lib/tree_haver/contracts.rb', line 346

def path
  @path
end

#validObject

Returns the value of attribute valid

Returns:

  • (Object)

    the current value of valid



346
347
348
# File 'lib/tree_haver/contracts.rb', line 346

def valid
  @valid
end

Instance Method Details

#to_hObject



347
348
349
350
351
352
353
# File 'lib/tree_haver/contracts.rb', line 347

def to_h
  {
    path: path,
    valid: valid,
    errors: errors || []
  }
end