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.
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
#action ⇒ Object
Returns the value of attribute action.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def action @action end |
#dest ⇒ Object
Returns the value of attribute dest.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def dest @dest end |
#matched ⇒ Object
Returns the value of attribute matched.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def matched @matched end |
#nil_route ⇒ Object
Returns the value of attribute nil_route.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def nil_route @nil_route end |
#obj ⇒ Object
Returns the value of attribute obj.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def obj @obj end |
#options ⇒ Object
Returns the value of attribute options.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def @options end |
#params ⇒ Object
Returns the value of attribute params.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
276 277 278 |
# File 'lib/spiderfw/controller/dispatcher.rb', line 276 def path @path end |