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
795 796 797 |
# File 'lib/tree_haver/contracts.rb', line 795 def byte_range @byte_range end |
#category ⇒ Object
Returns the value of attribute category
795 796 797 |
# File 'lib/tree_haver/contracts.rb', line 795 def category @category end |
#message ⇒ Object
Returns the value of attribute message
795 796 797 |
# File 'lib/tree_haver/contracts.rb', line 795 def @message end |
#schema_path ⇒ Object
Returns the value of attribute schema_path
795 796 797 |
# File 'lib/tree_haver/contracts.rb', line 795 def schema_path @schema_path end |
#severity ⇒ Object
Returns the value of attribute severity
795 796 797 |
# File 'lib/tree_haver/contracts.rb', line 795 def severity @severity end |
Instance Method Details
#to_h ⇒ Object
796 797 798 799 800 801 802 803 804 |
# File 'lib/tree_haver/contracts.rb', line 796 def to_h { severity: severity, category: category, message: , schema_path: schema_path, **(byte_range ? { byte_range: byte_range.to_h } : {}) } end |