Sha256: 98b14307362cd77d190e2b5595009f63064da0da45f5e6b76aa4f1492199cdcf

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

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

      def add(response)
        @responses.push(
          Fitting::Response.new(
            response,
            Fitting::Storage::Documentation.tomogram))
      end

      def statistics
        Fitting::Statistics.new(
          Fitting::Documentation.new(
            Fitting::Storage::Documentation.tomogram,
            Fitting.configuration.white_list),
          @responses.uniq,
          Fitting.configuration.strict
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fitting-2.0.3 lib/fitting/storage/responses.rb
fitting-2.0.2 lib/fitting/storage/responses.rb
fitting-2.0.1 lib/fitting/storage/responses.rb
fitting-2.0.0 lib/fitting/storage/responses.rb