class HttpStub::Server::Stub::Match::Rule::SimpleBody
Public Class Methods
new(body)
click to toggle source
# File lib/http_stub/server/stub/match/rule/simple_body.rb, line 9 def initialize(body) @body = body end
Public Instance Methods
matches?(request, _logger)
click to toggle source
# File lib/http_stub/server/stub/match/rule/simple_body.rb, line 13 def matches?(request, _logger) HttpStub::Server::Stub::Match::StringValueMatcher.match?(@body, request.body) end
to_s()
click to toggle source
# File lib/http_stub/server/stub/match/rule/simple_body.rb, line 17 def to_s @body end