class RoutingFilter::ResultWrapper

Constants

RouteWithParams

Attributes

params[R]
url[R]

Public Class Methods

new(result) click to toggle source
# File lib/routing_filter/result_wrapper.rb, line 11
def initialize(result)
  @url = result.path(nil)
  @params = result.params
end

Public Instance Methods

generate() click to toggle source
# File lib/routing_filter/result_wrapper.rb, line 20
def generate
  RouteWithParams.new(url, params)
end
update(url) click to toggle source
# File lib/routing_filter/result_wrapper.rb, line 16
def update(url)
  @url = url
end