Method: Soaspec::SoapHandler#values_from_path
- Defined in:
- lib/soaspec/exchange_handlers/soap_handler.rb
#values_from_path(response, path, attribute: nil) ⇒ Enumerable
Returns List of values returned from path.
189 190 191 |
# File 'lib/soaspec/exchange_handlers/soap_handler.rb', line 189 def values_from_path(response, path, attribute: nil) xpath_elements_for(response: response, xpath: path, attribute: attribute).map(&:inner_text) end |