Class: Tina4::DispatchPipeline::RouteContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/tina4/dispatch_pipeline.rb

Overview

Per-route state shared between route stages.

Instance Attribute Summary collapse

Instance Attribute Details

#envObject

Returns the value of attribute env

Returns:

  • (Object)

    the current value of env



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def env
  @env
end

#path_paramsObject

Returns the value of attribute path_params

Returns:

  • (Object)

    the current value of path_params



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def path_params
  @path_params
end

#pre_requestObject

Returns the value of attribute pre_request

Returns:

  • (Object)

    the current value of pre_request



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def pre_request
  @pre_request
end

#pre_responseObject

Returns the value of attribute pre_response

Returns:

  • (Object)

    the current value of pre_response



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def pre_response
  @pre_response
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def request
  @request
end

#responseObject

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def response
  @response
end

#routeObject

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



104
105
106
# File 'lib/tina4/dispatch_pipeline.rb', line 104

def route
  @route
end