Class: Hanami::Routing::RedirectEndpoint Private

Inherits:
Endpoint
  • Object
show all
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.

Since:

  • 1.0.1

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Endpoint

#inspect, #routable?

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.

Since:

  • 1.0.1


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_pathObject (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.

Since:

  • 1.0.1


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.

Returns:

  • (Boolean)

Since:

  • 1.0.1


190
191
192
# File 'lib/hanami/routing/endpoint.rb', line 190

def redirect?
  true
end