Class: Signpost::Endpoint::Redirect
- Inherits:
-
Object
- Object
- Signpost::Endpoint::Redirect
- Defined in:
- lib/signpost/endpoint/redirect.rb
Defined Under Namespace
Classes: Context
Constant Summary collapse
- CODES =
{ permanent: 301, temporary: 303 }.freeze
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
22 23 24 |
# File 'lib/signpost/endpoint/redirect.rb', line 22 def status @status end |
Instance Method Details
#call(env) ⇒ Object
29 30 31 |
# File 'lib/signpost/endpoint/redirect.rb', line 29 def call(env) [status, headers(env), body] end |