Class: JsonSchema::ValidationError
- Inherits:
-
SchemaError
- Object
- SchemaError
- JsonSchema::ValidationError
- Defined in:
- lib/json_schema/schema_error.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Attributes inherited from SchemaError
Instance Method Summary collapse
-
#initialize(schema, path, message) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #pointer ⇒ Object
Methods inherited from SchemaError
Constructor Details
#initialize(schema, path, message) ⇒ ValidationError
Returns a new instance of ValidationError.
25 26 27 28 |
# File 'lib/json_schema/schema_error.rb', line 25 def initialize(schema, path, ) super(schema, ) @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
23 24 25 |
# File 'lib/json_schema/schema_error.rb', line 23 def path @path end |
Instance Method Details
#pointer ⇒ Object
30 31 32 |
# File 'lib/json_schema/schema_error.rb', line 30 def pointer path.join("/") end |