class Fitting::Statistics::ResponsesStats
Public Class Methods
new(measurement)
click to toggle source
# File lib/fitting/statistics/responses_stats.rb, line 6 def initialize(measurement) @measurement = measurement end
Public Instance Methods
cover()
click to toggle source
# File lib/fitting/statistics/responses_stats.rb, line 17 def cover @cover ||= Fitting::Statistics::Percent.new( @measurement.all_responses, @measurement.cover_responses ) end
not_cover()
click to toggle source
# File lib/fitting/statistics/responses_stats.rb, line 24 def not_cover @not_cover ||= Fitting::Statistics::Percent.new( @measurement.all_responses, @measurement.not_cover_responses ) end
to_s()
click to toggle source
# File lib/fitting/statistics/responses_stats.rb, line 10 def to_s @to_s ||= [ "API responses conforming to the blueprint: #{cover}.", "API responses with validation errors or untested: #{not_cover}." ].join("\n") end