Method: Soaspec::ExchangeExtractor#values_from_path

Defined in:
lib/soaspec/exchange/exchange_extractor.rb

#values_from_path(path, attribute: nil) ⇒ Array

Returns List of values found at path.

Parameters:

  • path (String)

    XPath, JSONPath to extract value

  • attribute (String) (defaults to: nil)

    Attribute to obtain from XML element

Returns:

  • (Array)

    List of values found at path



8
9
10
# File 'lib/soaspec/exchange/exchange_extractor.rb', line 8

def values_from_path(path, attribute: nil)
  exchange_handler.values_from_path(response, path, attribute: attribute)
end