Class/Module Index [+]

Quicksearch

WebMock::URIStringPattern

Public Instance Methods

add_query_params(query_params) click to toggle source
# File lib/webmock/request_pattern.rb, line 109
def add_query_params(query_params)
  if !query_params.is_a?(Hash)
    query_params = Addressable::URI.parse('?' + query_params).query_values
  end
  @pattern.query_values = (@pattern.query_values || {}).merge(query_params)
end
matches?(uri) click to toggle source
# File lib/webmock/request_pattern.rb, line 101
def matches?(uri)
  if @pattern.is_a?(Addressable::URI)
    uri === @pattern
  else
    false
  end
end
to_s() click to toggle source
# File lib/webmock/request_pattern.rb, line 116
def to_s
  WebMock::Util::URI.strip_default_port_from_uri_string(@pattern.to_s)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.