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