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