class HttpStub::Server::Stub::Match::Rule::Uri

Public Class Methods

new(uri) click to toggle source
# File lib/http_stub/server/stub/match/rule/uri.rb, line 9
def initialize(uri)
  @uri = uri
end

Public Instance Methods

matches?(request, _logger) click to toggle source
# File lib/http_stub/server/stub/match/rule/uri.rb, line 13
def matches?(request, _logger)
  HttpStub::Server::Stub::Match::StringValueMatcher.match?(@uri, request.uri)
end
to_s() click to toggle source
# File lib/http_stub/server/stub/match/rule/uri.rb, line 17
def to_s
  @uri
end