Class: FlyingSphinx::Response::Invalid
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- FlyingSphinx::Response::Invalid
- Defined in:
- lib/flying_sphinx/response/invalid.rb
Instance Method Summary collapse
Instance Method Details
#on_complete(environment) ⇒ Object
2 3 4 5 6 |
# File 'lib/flying_sphinx/response/invalid.rb', line 2 def on_complete(environment) return unless environment[:status] == 403 raise FlyingSphinx::Error, 'Invalid Flying Sphinx credentials' end |