Sha256: 43652f9c3bdeca8cb8b200055ef9e46d65e20170a4c3222a60b874067ff42b36

Contents?: true

Size: 205 Bytes

Versions: 3

Compression:

Stored size: 205 Bytes

Contents

module Metrics
  module Instruments
    class Instrument
      def tags
        @tags ||= {}
      end

      def tag(key, value)
        @tags ||= {}
        @tags[key] = value
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-metrics-0.9.3 lib/ruby-metrics/instruments/instrument.rb
ruby-metrics-0.9.2 lib/ruby-metrics/instruments/instrument.rb
ruby-metrics-0.9.1 lib/ruby-metrics/instruments/instrument.rb