Class: CommunityZero::NotFoundEndpoint

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/community_zero/endpoints/not_found_endpoint.rb

Overview

The general 404 endpoint.

Author:

Constant Summary

Constants inherited from Endpoint

Endpoint::METHODS

Instance Attribute Summary

Attributes inherited from Endpoint

#server

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize, #store, #url_for, #version_url_for

Constructor Details

This class inherits a constructor from CommunityZero::Endpoint

Instance Method Details

#call(request) ⇒ Object



23
24
25
# File 'lib/community_zero/endpoints/not_found_endpoint.rb', line 23

def call(request)
  error("Object not found: #{request.env['REQUEST_PATH']}")
end