Sha256: 11d3dbfb540f6fba5da4bbc974708de913c83b9d1ebf7c179bcc0a901e69b7ef

Contents?: true

Size: 364 Bytes

Versions: 23

Compression:

Stored size: 364 Bytes

Contents

module Stella
class Testplan

  class Stats
    include Gibbler::Complex
    attr_reader :requests

    def initialize
      @requests = OpenStruct.new
      reset
    end
    
    def total_requests
      @requests.successful + @requests.failed
    end
    
    def reset 
      @requests.successful = 0
      @requests.failed = 0
    end
    
  end
    
end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
solutious-stella-0.7.0.001 lib/stella/testplan/stats.rb
solutious-stella-0.7.0.002 lib/stella/testplan/stats.rb
solutious-stella-0.7.0.003 lib/stella/testplan/stats.rb
solutious-stella-0.7.0.004 lib/stella/testplan/stats.rb
solutious-stella-0.7.0.005 lib/stella/testplan/stats.rb
solutious-stella-0.7.0.006 lib/stella/testplan/stats.rb
stella-0.7.3.002 lib/stella/testplan/stats.rb
stella-0.7.3 lib/stella/testplan/stats.rb
stella-0.7.2.003 lib/stella/testplan/stats.rb
stella-0.7.2.002 lib/stella/testplan/stats.rb
stella-0.7.2 lib/stella/testplan/stats.rb
stella-0.7.1 lib/stella/testplan/stats.rb
stella-0.7.0.019 lib/stella/testplan/stats.rb
stella-0.7.0.018 lib/stella/testplan/stats.rb
stella-0.7.0.017 lib/stella/testplan/stats.rb
stella-0.7.0.015 lib/stella/testplan/stats.rb
stella-0.7.0.014 lib/stella/testplan/stats.rb
stella-0.7.0.012 lib/stella/testplan/stats.rb
stella-0.7.0.006 lib/stella/testplan/stats.rb
stella-0.7.0.005 lib/stella/testplan/stats.rb