Class: TreeHaver::LibraryPathValidation
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::LibraryPathValidation
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#path ⇒ Object
Returns the value of attribute path.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
346 347 348 |
# File 'lib/tree_haver/contracts.rb', line 346 def errors @errors end |
#path ⇒ Object
Returns the value of attribute path
346 347 348 |
# File 'lib/tree_haver/contracts.rb', line 346 def path @path end |
#valid ⇒ Object
Returns the value of attribute valid
346 347 348 |
# File 'lib/tree_haver/contracts.rb', line 346 def valid @valid end |
Instance Method Details
#to_h ⇒ Object
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 |