Class: Torikago::RackEndpoint
- Inherits:
-
Object
- Object
- Torikago::RackEndpoint
- Defined in:
- lib/torikago/rack_endpoint.rb,
sig/torikago.rbs
Overview
A host-owned Rack endpoint that forwards requests to a registered module without exposing the module's Rails::Engine or controller constants in the main Box.
Instance Attribute Summary collapse
-
#module_name ⇒ Symbol
readonly
Returns the value of attribute module_name.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(module_name, registry: nil) ⇒ RackEndpoint
constructor
A new instance of RackEndpoint.
- #registry ⇒ Registry
Constructor Details
#initialize(module_name, registry: nil) ⇒ RackEndpoint
Returns a new instance of RackEndpoint.
6 7 8 9 |
# File 'lib/torikago/rack_endpoint.rb', line 6 def initialize(module_name, registry: nil) @module_name = module_name.to_sym @registry = registry end |
Instance Attribute Details
#module_name ⇒ Symbol (readonly)
Returns the value of attribute module_name.
17 18 19 |
# File 'lib/torikago/rack_endpoint.rb', line 17 def module_name @module_name end |