Class: Spider::Dispatcher::Route
- Defined in:
- lib/spiderfw/controller/dispatcher.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#dest ⇒ Object
Returns the value of attribute dest.
-
#matched ⇒ Object
Returns the value of attribute matched.
-
#nil_route ⇒ Object
Returns the value of attribute nil_route.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#options ⇒ Object
Returns the value of attribute options.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(args) ⇒ Route
constructor
A new instance of Route.
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] || [] = args[:options] || {} @matched = args[:matched] @nil_route = args[:nil_route] @obj = nil end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def action @action end |
#dest ⇒ Object
Returns the value of attribute dest.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def dest @dest end |
#matched ⇒ Object
Returns the value of attribute matched.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def matched @matched end |
#nil_route ⇒ Object
Returns the value of attribute nil_route.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def nil_route @nil_route end |
#obj ⇒ Object
Returns the value of attribute obj.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def obj @obj end |
#options ⇒ Object
Returns the value of attribute options.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def end |
#params ⇒ Object
Returns the value of attribute params.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
286 287 288 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 286 def path @path end |