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