class Deas::RequestData

Attributes

params[R]

The rack app uses this to “compile” the request-related data. The goal here is to wrap up these (and any future) request objects into a struct object to make them available to the runner/handler. This is also to decouple the rack app from the handlers (we can use any rack app as long as they provide this data).

request[R]

The rack app uses this to “compile” the request-related data. The goal here is to wrap up these (and any future) request objects into a struct object to make them available to the runner/handler. This is also to decouple the rack app from the handlers (we can use any rack app as long as they provide this data).

response[R]

The rack app uses this to “compile” the request-related data. The goal here is to wrap up these (and any future) request objects into a struct object to make them available to the runner/handler. This is also to decouple the rack app from the handlers (we can use any rack app as long as they provide this data).

route_path[R]

The rack app uses this to “compile” the request-related data. The goal here is to wrap up these (and any future) request objects into a struct object to make them available to the runner/handler. This is also to decouple the rack app from the handlers (we can use any rack app as long as they provide this data).

Public Class Methods

new(args) click to toggle source
# File lib/deas/request_data.rb, line 13
def initialize(args)
  @request    = args[:request]
  @response   = args[:response]
  @route_path = args[:route_path]
  @params     = args[:params]
end

Public Instance Methods

==(other_request_data) click to toggle source
Calls superclass method
# File lib/deas/request_data.rb, line 20
def ==(other_request_data)
  if other_request_data.kind_of?(RequestData)
    self.request    == other_request_data.request    &&
    self.response   == other_request_data.response   &&
    self.route_path == other_request_data.route_path &&
    self.params     == other_request_data.params
  else
    super
  end
end