Class: HttpStub::Server::Stub::Match::Rule::Parameters
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- HttpStub::Server::Stub::Match::Rule::Parameters
- Includes:
- Extensions::Core::Hash::Formatted
- Defined in:
- lib/http_stub/server/stub/match/rule/parameters.rb
Instance Method Summary collapse
-
#initialize(parameters) ⇒ Parameters
constructor
A new instance of Parameters.
- #matches?(request, _logger) ⇒ Boolean
Methods included from Extensions::Core::Hash::Formatted
Constructor Details
#initialize(parameters) ⇒ Parameters
Returns a new instance of Parameters.
10 11 12 |
# File 'lib/http_stub/server/stub/match/rule/parameters.rb', line 10 def initialize(parameters) super(parameters || {}, "=", "&") end |
Instance Method Details
#matches?(request, _logger) ⇒ Boolean
14 15 16 |
# File 'lib/http_stub/server/stub/match/rule/parameters.rb', line 14 def matches?(request, _logger) HttpStub::Server::Stub::Match::HashMatcher.match?(self, request.parameters) end |