Class: Apill::Matchers::AcceptHeader

Inherits:
Object
  • Object
show all
Includes:
Generic
Defined in:
lib/apill/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)


8
9
10
11
12
# File 'lib/apill/matchers/accept_header.rb', line 8

def matches?(request)
  super

  accept_header.valid?
end