Class: OpenStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/spectre/http.rb

Instance Method Summary collapse

Instance Method Details

#pick(path) ⇒ Object

Raises:

  • (ArgumentError)


24
25
26
27
28
# File 'lib/spectre/http.rb', line 24

def pick path
  raise ArgumentError, "`path' must not be nil or empty" if path.nil? or path.empty?

  JsonPath.on(self, path)
end