Class: HttpStub::Server::Stub::Uri
- Inherits:
-
Object
- Object
- HttpStub::Server::Stub::Uri
- Defined in:
- lib/http_stub/server/stub/uri.rb
Instance Method Summary collapse
-
#initialize(uri) ⇒ Uri
constructor
A new instance of Uri.
- #match?(request) ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#match?(request) ⇒ Boolean
11 12 13 |
# File 'lib/http_stub/server/stub/uri.rb', line 11 def match?(request) @uri.match?(request.path_info) end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/http_stub/server/stub/uri.rb', line 15 def to_s @uri.to_s end |