Class: Fitting::Storage::Responses

Inherits:
Object
  • Object
show all
Defined in:
lib/fitting/storage/responses.rb

Instance Method Summary collapse

Constructor Details

#initializeResponses

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

#statisticsObject



16
17
18
# File 'lib/fitting/storage/responses.rb', line 16

def statistics
  Fitting::Statistics.new(@tested_requests)
end

#testsObject



20
21
22
# File 'lib/fitting/storage/responses.rb', line 20

def tests
  Fitting::Tests.new(@tested_requests)
end