Class: Apill::Matchers::AcceptHeaderMatcher
- Inherits:
-
Object
- Object
- Apill::Matchers::AcceptHeaderMatcher
show all
- Includes:
- GenericMatcher
- Defined in:
- lib/apill/matchers/accept_header_matcher.rb
Instance Attribute Summary
#accept_header, #application
Instance Method Summary
collapse
#initialize
Instance Method Details
#matches?(request) ⇒ Boolean
8
9
10
11
12
13
|
# File 'lib/apill/matchers/accept_header_matcher.rb', line 8
def matches?(request)
super
request.subdomains.first == 'api' &&
.valid?
end
|