module Drillbit::Matchers::Generic
Attributes
accept_header[W]
application[W]
request[RW]
Public Class Methods
new(**args)
click to toggle source
# File lib/drillbit/matchers/generic.rb, line 12 def initialize(**args) args.each do |variable, value| __send__("#{variable}=", value) end end
Public Instance Methods
accept_header()
click to toggle source
# File lib/drillbit/matchers/generic.rb, line 26 def accept_header request.accept_header end
application()
click to toggle source
# File lib/drillbit/matchers/generic.rb, line 22 def application request.application_name end
matches?(request)
click to toggle source
# File lib/drillbit/matchers/generic.rb, line 18 def matches?(request) self.request = Requests::Base.resolve(request) end