class Fitting::Records::Tested::Response

Public Class Methods

new(env_response) click to toggle source
# File lib/fitting/records/tested/response.rb, line 7
def initialize(env_response)
  @env_response = env_response
end

Public Instance Methods

body() click to toggle source
# File lib/fitting/records/tested/response.rb, line 15
def body
  @body ||= @env_response.body
end
status() click to toggle source
# File lib/fitting/records/tested/response.rb, line 11
def status
  @status ||= @env_response.status
end
to_spherical() click to toggle source
# File lib/fitting/records/tested/response.rb, line 19
def to_spherical
  Fitting::Records::Spherical::Response.new(
    status: status,
    body: body
  )
end