class HttpStub::Server::Stub::Match::Rule::Headers
Public Class Methods
new(headers)
click to toggle source
Calls superclass method
HttpStub::Extensions::Core::Hash::Formatted::new
# File lib/http_stub/server/stub/match/rule/headers.rb, line 11 def initialize(headers) super((headers || {}).underscore_keys, ":") end
Public Instance Methods
matches?(request, _logger)
click to toggle source
# File lib/http_stub/server/stub/match/rule/headers.rb, line 15 def matches?(request, _logger) HttpStub::Server::Stub::Match::HashMatcher.match?(self, request.headers) end