Method: Soaspec::RestHandler#json_path_values_for
- Defined in:
- lib/soaspec/exchange_handlers/rest_handler.rb
#json_path_values_for(response, path, attribute: nil) ⇒ Enumerable
Returns List of values matching JSON path.
160 161 162 163 164 |
# File 'lib/soaspec/exchange_handlers/rest_handler.rb', line 160 def json_path_values_for(response, path, attribute: nil) raise 'JSON does not support attributes' if attribute JsonPath.on(response.body, path) end |