Class: Fitting::Storage::Responses
- Inherits:
-
Object
- Object
- Fitting::Storage::Responses
- Defined in:
- lib/fitting/storage/responses.rb
Instance Method Summary collapse
- #add(env_response) ⇒ Object
-
#initialize ⇒ Responses
constructor
A new instance of Responses.
- #statistics ⇒ Object
Constructor Details
#initialize ⇒ Responses
Returns a new instance of Responses.
7 8 9 |
# File 'lib/fitting/storage/responses.rb', line 7 def initialize @tested_requests = [] end |
Instance Method Details
#add(env_response) ⇒ Object
11 12 13 |
# File 'lib/fitting/storage/responses.rb', line 11 def add(env_response) @tested_requests.push(Fitting::Records::Tested::Request.new(env_response)) end |
#statistics ⇒ Object
15 16 17 |
# File 'lib/fitting/storage/responses.rb', line 15 def statistics Fitting::Statistics.new(@tested_requests) end |