Class: Spider::Dispatcher::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/spiderfw/controller/dispatcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Route

Returns a new instance of Route.



288
289
290
291
292
293
294
295
296
297
# File 'lib/spiderfw/controller/dispatcher.rb', line 288

def initialize(args)
    @path = args[:path]
    @dest = args[:dest]
    @action = args[:action]
    @params = args[:params] || []
    @options = args[:options] || {}
    @matched = args[:matched]
    @nil_route = args[:nil_route]
    @obj = nil
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def action
  @action
end

#destObject

Returns the value of attribute dest.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def dest
  @dest
end

#matchedObject

Returns the value of attribute matched.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def matched
  @matched
end

#nil_routeObject

Returns the value of attribute nil_route.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def nil_route
  @nil_route
end

#objObject

Returns the value of attribute obj.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def obj
  @obj
end

#optionsObject

Returns the value of attribute options.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def options
  @options
end

#paramsObject

Returns the value of attribute params.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def params
  @params
end

#pathObject

Returns the value of attribute path.



286
287
288
# File 'lib/spiderfw/controller/dispatcher.rb', line 286

def path
  @path
end