Class: Primer::Router::Request
- Inherits:
-
Object
- Object
- Primer::Router::Request
- Defined in:
- lib/primer/route_set.rb
Instance Attribute Summary collapse
-
#path_info ⇒ Object
(also: #route)
readonly
Returns the value of attribute path_info.
Instance Method Summary collapse
-
#initialize(path) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(path) ⇒ Request
Returns a new instance of Request.
23 24 25 |
# File 'lib/primer/route_set.rb', line 23 def initialize(path) @path_info = path end |
Instance Attribute Details
#path_info ⇒ Object (readonly) Also known as: route
Returns the value of attribute path_info.
21 22 23 |
# File 'lib/primer/route_set.rb', line 21 def path_info @path_info end |