Exception: Locomotive::Steam::RedirectionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/locomotive/steam/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ RedirectionException

Returns a new instance of RedirectionException.



10
11
12
13
# File 'lib/locomotive/steam/errors.rb', line 10

def initialize(url)
  @url = url
  super("Redirect to #{url}")
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



8
9
10
# File 'lib/locomotive/steam/errors.rb', line 8

def url
  @url
end