Sha256: 8999255d9b1af1933ee8311a576cdb773b0ebf266ed407d52a06c47b3b8c23bf
Contents?: true
Size: 228 Bytes
Versions: 3
Compression:
Stored size: 228 Bytes
Contents
module Suricate class Chart def initialize(labels, series) @labels = labels @series = series end def to_h { labels: @labels, series: @series.map(&:to_h) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
suricate-0.0.4 | lib/suricate/charts/chart.rb |
suricate-0.0.3 | lib/suricate/charts/chart.rb |
suricate-0.0.2 | lib/suricate/charts/chart.rb |