Class: Apiphobic::Responses::InvalidAcceptHeader
- Defined in:
- lib/apiphobic/responses/invalid_accept_header.rb
Class Method Summary collapse
Class Method Details
.call(env) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/apiphobic/responses/invalid_accept_header.rb', line 9 def self.call(env) error ||= Errors::InvalidAcceptHeader.new( accept_header: env['HTTP_ACCEPT'], ) super(env, error: error) end |