Sha256: 5bf14fc1a6f3ca7f11011aca62522eedbb6499854867ade3906acdd6bfe962ab
Contents?: true
Size: 463 Bytes
Versions: 4
Compression:
Stored size: 463 Bytes
Contents
require 'date' module Mongodb module Graphite module Agent class OpCountersSample attr_reader :values, :sample_time def initialize(values, sample_time = DateTime.now.to_s) @values = values @sample_time = sample_time end def marshal_dump [@sample_time, @values] end def marshal_load array @sample_time, @values = array end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems