Class: Signpost::Endpoint::Redirect

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

Instance Method Summary collapse

Instance Attribute Details

#statusObject (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