Class: Hanami::Routing::RedirectEndpoint Private
- Defined in:
- lib/hanami/routing/endpoint.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #destination_path ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(destination_path, destination) ⇒ RedirectEndpoint
constructor
private
A new instance of RedirectEndpoint.
- #redirect? ⇒ Boolean private
Methods inherited from Endpoint
Constructor Details
#initialize(destination_path, destination) ⇒ RedirectEndpoint
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RedirectEndpoint.
183 184 185 186 |
# File 'lib/hanami/routing/endpoint.rb', line 183 def initialize(destination_path, destination) @destination_path = destination_path super(destination) end |
Instance Attribute Details
#destination_path ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
179 180 181 |
# File 'lib/hanami/routing/endpoint.rb', line 179 def destination_path @destination_path end |
Instance Method Details
#redirect? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
190 191 192 |
# File 'lib/hanami/routing/endpoint.rb', line 190 def redirect? true end |