Class: Fitting::Records::Tested::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/fitting/records/tested/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(env_response) ⇒ Response

Returns a new instance of Response.



5
6
7
# File 'lib/fitting/records/tested/response.rb', line 5

def initialize(env_response)
  @env_response = env_response
end

Instance Method Details

#bodyObject



13
14
15
# File 'lib/fitting/records/tested/response.rb', line 13

def body
  @body ||= @env_response.body
end

#statusObject



9
10
11
# File 'lib/fitting/records/tested/response.rb', line 9

def status
  @status ||= @env_response.status
end