Exception: JsonAssert::MissingPathError
- Inherits:
-
StandardError
- Object
- StandardError
- JsonAssert::MissingPathError
- Defined in:
- lib/json_assert/errors.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ MissingPathError
constructor
A new instance of MissingPathError.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ MissingPathError
Returns a new instance of MissingPathError.
5 6 7 |
# File 'lib/json_assert/errors.rb', line 5 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/json_assert/errors.rb', line 3 def path @path end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/json_assert/errors.rb', line 9 def to_s %(Missing JSON path "#{path}") end |