Module: Apill::Matchers::Generic
- Included in:
- AcceptHeader, Version
- Defined in:
- lib/apill/matchers/generic.rb
Instance Attribute Summary collapse
-
#accept_header ⇒ Object
Returns the value of attribute accept_header.
-
#application ⇒ Object
Returns the value of attribute application.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
Instance Attribute Details
#accept_header ⇒ Object
Returns the value of attribute accept_header.
4 5 6 |
# File 'lib/apill/matchers/generic.rb', line 4 def accept_header @accept_header end |
#application ⇒ Object
Returns the value of attribute application.
4 5 6 |
# File 'lib/apill/matchers/generic.rb', line 4 def application @application end |
#request ⇒ Object
Returns the value of attribute request.
4 5 6 |
# File 'lib/apill/matchers/generic.rb', line 4 def request @request end |
Instance Method Details
#initialize(**args) ⇒ Object
8 9 10 11 12 |
# File 'lib/apill/matchers/generic.rb', line 8 def initialize(**args) args.each do |variable, value| __send__("#{variable}=", value) end end |
#matches?(request) ⇒ Boolean
14 15 16 |
# File 'lib/apill/matchers/generic.rb', line 14 def matches?(request) self.request = request end |