Sha256: 9d1316e6bec91ca7c1193ccc33357027a1dddd2134fe12182ef6919f1fbb102f
Contents?: true
Size: 439 Bytes
Versions: 24
Compression:
Stored size: 439 Bytes
Contents
require "cabin/namespace" require "cabin/publisher" require "cabin/inspectable" module Cabin::Metric include Cabin::Inspectable include Cabin::Publisher def instance=(instance) @instance = instance end # def instance= def instance return @instance end # def instance def emit if !@channel.nil? @channel.publish({ :metric => instance }.merge(to_hash)) end end # def emit end # module Cabin::Metric
Version data entries
24 entries across 22 versions & 6 rubygems