Sha256: e2b7c975885c6aefc0498d8d274c5aa0301627bf44a13f4bc4eba53a1a9018ab

Contents?: true

Size: 302 Bytes

Versions: 8

Compression:

Stored size: 302 Bytes

Contents

module StatsD::Instrument::Backends
  class CaptureBackend < StatsD::Instrument::Backend
    attr_reader :collected_metrics

    def initialize
      reset
    end

    def collect_metric(metric)
      @collected_metrics << metric
    end

    def reset
      @collected_metrics = []
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
statsd-instrument-2.0.5 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.4 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.3 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.2 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.1 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.0 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.0beta2 lib/statsd/instrument/backends/capture_backend.rb
statsd-instrument-2.0.0beta lib/statsd/instrument/backends/capture_backend.rb