Class: RapidRunty::Router::Route
- Defined in:
- lib/rapid_runty/router/route.rb
Overview
Defines a single user defined route.
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#path ⇒ Object
Returns the value of attribute path.
-
#placeholders ⇒ Object
Returns the value of attribute placeholders.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(verb, path, options) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(verb, path, options) ⇒ Route
Returns a new instance of Route.
8 9 10 11 12 13 |
# File 'lib/rapid_runty/router/route.rb', line 8 def initialize(verb, path, ) self.verb = verb self.path = path self. = self.placeholders = {} end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/rapid_runty/router/route.rb', line 6 def @options end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/rapid_runty/router/route.rb', line 6 def path @path end |
#placeholders ⇒ Object
Returns the value of attribute placeholders.
6 7 8 |
# File 'lib/rapid_runty/router/route.rb', line 6 def placeholders @placeholders end |
#verb ⇒ Object
Returns the value of attribute verb.
6 7 8 |
# File 'lib/rapid_runty/router/route.rb', line 6 def verb @verb end |