lib/fitting/records/tested/response.rb in fitting-2.18.3 vs lib/fitting/records/tested/response.rb in fitting-3.0.0
- old
+ new
@@ -2,19 +2,19 @@
module Fitting
class Records
class Tested
class Response
- def initialize(env_response)
- @env_response = env_response
+ def initialize(response)
+ @response = response
end
def status
- @status ||= @env_response.status
+ @status ||= @response.status
end
def body
- @body ||= @env_response.body
+ @body ||= @response.body
end
def to_spherical
Fitting::Records::Spherical::Response.new(
status: status,