Files

WebMock::URIStringPattern

Public Instance Methods

add_query_params(query_params) click to toggle source
     # File lib/webmock/request_pattern.rb, line 104
104:     def add_query_params(query_params)
105:       if !query_params.is_a?(Hash)
106:         query_params = Addressable::URI.parse('?' + query_params).query_values
107:       end
108:       @pattern.query_values = (@pattern.query_values || {}).merge(query_params)
109:     end
matches?(uri) click to toggle source
     # File lib/webmock/request_pattern.rb, line 96
 96:     def matches?(uri)
 97:       if @pattern.is_a?(Addressable::URI)
 98:         uri === @pattern
 99:       else
100:         false
101:       end
102:     end
to_s() click to toggle source
     # File lib/webmock/request_pattern.rb, line 111
111:     def to_s
112:       WebMock::Util::URI.strip_default_port_from_uri_string(@pattern.to_s)
113:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.