Class: TreeHaver::BinaryDiagnostic
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BinaryDiagnostic
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#byte_range ⇒ Object
Returns the value of attribute byte_range.
-
#category ⇒ Object
Returns the value of attribute category.
-
#message ⇒ Object
Returns the value of attribute message.
-
#schema_path ⇒ Object
Returns the value of attribute schema_path.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#byte_range ⇒ Object
Returns the value of attribute byte_range
191 192 193 |
# File 'lib/tree_haver/contracts.rb', line 191 def byte_range @byte_range end |
#category ⇒ Object
Returns the value of attribute category
191 192 193 |
# File 'lib/tree_haver/contracts.rb', line 191 def category @category end |
#message ⇒ Object
Returns the value of attribute message
191 192 193 |
# File 'lib/tree_haver/contracts.rb', line 191 def @message end |
#schema_path ⇒ Object
Returns the value of attribute schema_path
191 192 193 |
# File 'lib/tree_haver/contracts.rb', line 191 def schema_path @schema_path end |
#severity ⇒ Object
Returns the value of attribute severity
191 192 193 |
# File 'lib/tree_haver/contracts.rb', line 191 def severity @severity end |
Instance Method Details
#to_h ⇒ Object
192 193 194 195 196 197 198 199 200 |
# File 'lib/tree_haver/contracts.rb', line 192 def to_h { severity: severity, category: category, message: , schema_path: schema_path, **(byte_range ? { byte_range: byte_range.to_h } : {}) } end |