Sha256: 31ddf126a6f38f5e54009e416b373f0ed5d3d479bf14555ef9f9abc39159dc41

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require 'singleton'
require "fozzie/interface"

module Fozzie
  class Dsl
    include Fozzie::Interface, Singleton

    private

    # Send the statistic to the chosen provider
    #
    def send(stat, value, type, sample_rate = 1)
     val = { :bin => stat, :value => value, :type => type, :sample_rate => sample_rate }

     adapter.register(val)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fozzie-1.0.3 lib/fozzie/dsl.rb