Sha256: 800ae32303c9527ea255c38d0a940314b143f66faeb6cd762b2d7dbcbd3fbdf2
Contents?: true
Size: 336 Bytes
Versions: 3
Compression:
Stored size: 336 Bytes
Contents
module Suricate class ChartBuilder def initialize @series = [] @labels = [] end def serie builder = ChartSerieBuilder.new yield builder @series << builder.serie end def labels(labels) @labels = labels end def chart Chart.new(@labels, @series) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
suricate-0.0.4 | lib/suricate/charts/chart_builder.rb |
suricate-0.0.3 | lib/suricate/charts/chart_builder.rb |
suricate-0.0.2 | lib/suricate/charts/chart_builder.rb |