Class: Metova::Versioning::UnsupportedVersionApp
- Inherits:
-
Object
- Object
- Metova::Versioning::UnsupportedVersionApp
- Defined in:
- lib/metova/versioning/unsupported_version_app.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/metova/versioning/unsupported_version_app.rb', line 5 def call(env) [ 412, { 'Content-Type' => 'application/json' }, JSON[{ errors: ['API version was not provided or is not current. Provide the API version in the Accept header (Accept: application/json; version=X)'] }] ] end |