Class: Penthouse::Routers::BaseRouter

Inherits:
Object
  • Object
show all
Defined in:
lib/penthouse/routers/base_router.rb

Direct Known Subclasses

SubdomainRouter

Class Method Summary collapse

Class Method Details

.call(request) ⇒ String, Symbol

This method is abstract.

typically used by the App to receive a request and return a tenant that can be switched to

Returns A tenant identifier.

Parameters:

  • request (Rack::Request)

    The request from the Rack app, used to determine the tenant

Returns:

  • (String, Symbol)

    A tenant identifier

Raises:



18
19
20
# File 'lib/penthouse/routers/base_router.rb', line 18

def self.call(request)
  raise NotImplementedError
end