Module: Drillbit::Matchers::Generic
- Included in:
- AcceptHeader, Version
- Defined in:
- lib/drillbit/matchers/generic.rb
Instance Attribute Summary collapse
- #accept_header ⇒ Object
- #application ⇒ Object
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
Instance Attribute Details
#accept_header ⇒ Object
26 27 28 |
# File 'lib/drillbit/matchers/generic.rb', line 26 def accept_header request.accept_header end |
#application ⇒ Object
22 23 24 |
# File 'lib/drillbit/matchers/generic.rb', line 22 def application request.application_name end |
#request ⇒ Object
Returns the value of attribute request.
8 9 10 |
# File 'lib/drillbit/matchers/generic.rb', line 8 def request @request end |
Instance Method Details
#initialize(**args) ⇒ Object
12 13 14 15 16 |
# File 'lib/drillbit/matchers/generic.rb', line 12 def initialize(**args) args.each do |variable, value| __send__("#{variable}=", value) end end |