Exception: XmlSpec::MissingPath

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingPath

Returns a new instance of MissingPath.



20
21
22
# File 'lib/xml_spec/errors.rb', line 20

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



18
19
20
# File 'lib/xml_spec/errors.rb', line 18

def path
  @path
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/xml_spec/errors.rb', line 24

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