Exception: Response::Matchers::MissingPathError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reusable/rspec/support/matchers/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingPathError

Returns a new instance of MissingPathError.



6
7
8
# File 'lib/reusable/rspec/support/matchers/exceptions.rb', line 6

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/reusable/rspec/support/matchers/exceptions.rb', line 4

def path
  @path
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/reusable/rspec/support/matchers/exceptions.rb', line 10

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