class Typhoeus::Expectation
def matches?(request)
-
(Boolean)
- True when matches, else false.
Parameters:
-
The
(Request
) -- request to check.
Other tags:
- Example: Check if request matches. -
def matches?(request) url_match?(request.url) && (options ? options.all?{ |k,v| request.original_options[k] == v } : true) end