Sha256: 9fcfb8f9bfaedc3051b6c29519a003c04b144d8a47398b2537f2ed327ee78892

Contents?: true

Size: 370 Bytes

Versions: 8

Compression:

Stored size: 370 Bytes

Contents

module Harness
  class MemoryAdapter
    def self.gauges
      @gauges ||= []
    end

    def self.counters
      @counters ||= []
    end

    def log_gauge(gauge)
      gauges << gauge
    end

    def log_counter(counter)
      counters << counter
    end

    def counters
      self.class.counters
    end

    def gauges
      self.class.gauges
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/adapters/memory_adapter.rb
harness-0.9.0 lib/harness/adapters/memory_adapter.rb
harness-0.8.1 lib/harness/adapters/memory_adapter.rb
harness-0.8.0 lib/harness/adapters/memory_adapter.rb
harness-0.7.0 lib/harness/adapters/memory_adapter.rb
harness-0.6.0 lib/harness/adapters/memory_adapter.rb
harness-0.5.0 lib/harness/adapters/memory_adapter.rb
harness-0.4.0 lib/harness/adapters/memory_adapter.rb