Sha256: 75c78c5a549003e68e3bc0d50e037f778201e94d0854a403cdd083fc0b887e72

Contents?: true

Size: 531 Bytes

Versions: 21

Compression:

Stored size: 531 Bytes

Contents

require 'fitting/statistics'
require 'fitting/tests'
require 'fitting/records/tested/request'

module Fitting
  module Storage
    class Responses
      def initialize
        @tested_requests = []
      end

      def add(env_response, test_title = '')
        @tested_requests.push(Fitting::Records::Tested::Request.new(env_response, test_title))
      end

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fitting-2.18.0 lib/fitting/storage/responses.rb
fitting-2.17.0 lib/fitting/storage/responses.rb
fitting-2.16.1 lib/fitting/storage/responses.rb
fitting-2.16.0 lib/fitting/storage/responses.rb
fitting-2.15.0 lib/fitting/storage/responses.rb
fitting-2.14.1 lib/fitting/storage/responses.rb
fitting-2.14.0 lib/fitting/storage/responses.rb
fitting-2.13.1 lib/fitting/storage/responses.rb
fitting-2.13.0 lib/fitting/storage/responses.rb
fitting-2.12.1 lib/fitting/storage/responses.rb
fitting-2.12.0 lib/fitting/storage/responses.rb
fitting-2.11.0 lib/fitting/storage/responses.rb
fitting-2.10.0 lib/fitting/storage/responses.rb
fitting-2.9.1 lib/fitting/storage/responses.rb
fitting-2.9.0 lib/fitting/storage/responses.rb
fitting-2.8.1 lib/fitting/storage/responses.rb
fitting-2.8.0 lib/fitting/storage/responses.rb
fitting-2.7.2 lib/fitting/storage/responses.rb
fitting-2.7.1 lib/fitting/storage/responses.rb
fitting-2.7.0 lib/fitting/storage/responses.rb