Sha256: f50eb7586afd117e030066b7c070b1e3cf1daca166fcdfdcfca7551532c7b036

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 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

3 entries across 3 versions & 1 rubygems

Version Path
fozzie-1.0.2 lib/fozzie/dsl.rb
fozzie-1.0.1 lib/fozzie/dsl.rb
fozzie-1.0.0 lib/fozzie/dsl.rb