Sha256: 2280e147942c8ee932fcfbb71124dd9dbcebf21baa656729ab923d057bfc5379
Contents?: true
Size: 721 Bytes
Versions: 4
Compression:
Stored size: 721 Bytes
Contents
require 'tomograph/path' require 'fitting/records/tested/response' module Fitting class Records class Tested class Request def initialize(env_response) @env_response = env_response end def method @method ||= @env_response.request.request_method end def path @path ||= Tomograph::Path.new(@env_response.request.env['PATH_INFO'] || @env_response.request.fullpath) end def body @body ||= @env_response.request.env['action_dispatch.request.request_parameters'] end def response @response ||= Fitting::Records::Tested::Response.new(@env_response) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems