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.



278
279
280
281
282
283
284
285
286
287
# File 'lib/spiderfw/controller/dispatcher.rb', line 278

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.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def action
  @action
end

#destObject

Returns the value of attribute dest.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def dest
  @dest
end

#matchedObject

Returns the value of attribute matched.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def matched
  @matched
end

#nil_routeObject

Returns the value of attribute nil_route.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def nil_route
  @nil_route
end

#objObject

Returns the value of attribute obj.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def obj
  @obj
end

#optionsObject

Returns the value of attribute options.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def options
  @options
end

#paramsObject

Returns the value of attribute params.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def params
  @params
end

#pathObject

Returns the value of attribute path.



276
277
278
# File 'lib/spiderfw/controller/dispatcher.rb', line 276

def path
  @path
end