Class: Nested::Redirect
- Inherits:
-
Object
- Object
- Nested::Redirect
- Defined in:
- lib/nested/redirect.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Redirect
constructor
A new instance of Redirect.
Constructor Details
#initialize(url) ⇒ Redirect
Returns a new instance of Redirect.
4 5 6 |
# File 'lib/nested/redirect.rb', line 4 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/nested/redirect.rb', line 3 def url @url end |