Class: Drillbit::Matchers::AcceptHeader

Inherits:
Object
  • Object
show all
Includes:
Generic
Defined in:
lib/drillbit/matchers/accept_header.rb

Instance Attribute Summary

Attributes included from Generic

#accept_header, #application, #request

Instance Method Summary collapse

Methods included from Generic

#initialize

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
14
# File 'lib/drillbit/matchers/accept_header.rb', line 10

def matches?(request)
  super

  accept_header.valid?
end