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.



257
258
259
260
261
262
263
264
265
# File 'lib/spiderfw/controller/dispatcher.rb', line 257

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

Instance Attribute Details

#actionObject

Returns the value of attribute action.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def action
  @action
end

#destObject

Returns the value of attribute dest.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def dest
  @dest
end

#matchedObject

Returns the value of attribute matched.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def matched
  @matched
end

#objObject

Returns the value of attribute obj.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def obj
  @obj
end

#optionsObject

Returns the value of attribute options.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def options
  @options
end

#paramsObject

Returns the value of attribute params.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def params
  @params
end

#pathObject

Returns the value of attribute path.



255
256
257
# File 'lib/spiderfw/controller/dispatcher.rb', line 255

def path
  @path
end