Sha256: 5b88b192179087038d960f0554427da1a19696459ee7e05b4c1a16f88ee86f14
Contents?: true
Size: 260 Bytes
Versions: 2
Compression:
Stored size: 260 Bytes
Contents
require 'pry' require 'downsampler' DataPoint = Struct.new :name, :time, :value def generate_enumerable time = Time.at((Time.now.to_f / 60).floor * 60) # Emulate Time.floor (1..9).map do |i| DataPoint.new("Point #{i}", (time - i*20), i) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
downsampler-0.2.0 | spec/spec_helper.rb |
downsampler-0.1.0 | spec/spec_helper.rb |