Class: Primer::Router::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/primer/route_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject (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