Class: SimpleRouter::Routes::Route
- Inherits:
-
Object
- Object
- SimpleRouter::Routes::Route
- Defined in:
- lib/simple_router/routes.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#options ⇒ Object
Returns the value of attribute options.
-
#path ⇒ Object
Returns the value of attribute path.
-
#values ⇒ Object
Returns the value of attribute values.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(verb, path, options, &action) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(verb, path, options, &action) ⇒ Route
Returns a new instance of Route.
27 28 29 30 31 32 33 |
# File 'lib/simple_router/routes.rb', line 27 def initialize(verb, path, , &action) self.verb = verb self.path = path self. = self.action = action self.values = nil end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
25 26 27 |
# File 'lib/simple_router/routes.rb', line 25 def action @action end |
#options ⇒ Object
Returns the value of attribute options.
25 26 27 |
# File 'lib/simple_router/routes.rb', line 25 def @options end |
#path ⇒ Object
Returns the value of attribute path.
25 26 27 |
# File 'lib/simple_router/routes.rb', line 25 def path @path end |
#values ⇒ Object
Returns the value of attribute values.
25 26 27 |
# File 'lib/simple_router/routes.rb', line 25 def values @values end |
#verb ⇒ Object
Returns the value of attribute verb.
25 26 27 |
# File 'lib/simple_router/routes.rb', line 25 def verb @verb end |