class Locomotive::Steam::RedirectionException

Attributes

permanent[R]
url[R]

Public Class Methods

new(url, permanent: false) click to toggle source
Calls superclass method
# File lib/locomotive/steam/errors.rb, line 10
def initialize(url, permanent: false)
  @url        = url
  @permanent  = permanent
  super("Redirect to #{url} (#{permanent ? '301': '302'})")
end