Exception: JsonSpec::MissingPath

Inherits:
Error
  • Object
show all
Defined in:
lib/json_spec/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingPath

Returns a new instance of MissingPath.



8
9
10
# File 'lib/json_spec/errors.rb', line 8

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/json_spec/errors.rb', line 6

def path
  @path
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/json_spec/errors.rb', line 12

def to_s
  %(Missing JSON path "#{path}")
end