Files

WebMock::URIRegexpPattern

Public Instance Methods

add_query_params(query_params) click to toggle source
    # File lib/webmock/request_pattern.rb, line 89
89:     def add_query_params(query_params)
90:       @query_params = query_params.is_a?(Hash) ? query_params : Addressable::URI.parse('?' + query_params).query_values
91:     end
matches?(uri) click to toggle source
    # File lib/webmock/request_pattern.rb, line 78
78:     def matches?(uri)
79:       WebMock::Util::URI.variations_of_uri_as_strings(uri).any? { |u| u.match(@pattern) } &&
80:         (@query_params.nil? || @query_params == uri.query_values)
81:     end
to_s() click to toggle source
    # File lib/webmock/request_pattern.rb, line 83
83:     def to_s
84:       str = @pattern.inspect
85:       str += " with query params #{@query_params.inspect}" if @query_params
86:       str
87:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.