Sha256: 260c47be4fccd34f57132f86d74bfacb9033b7298fa29e2ce44e07fedacc16f7
Contents?: true
Size: 238 Bytes
Versions: 1
Compression:
Stored size: 238 Bytes
Contents
require 'delegate' module Suricate class ChartWidgetResponse def initialize @builder = ChartBuilder.new end def chart yield @builder end def to_h { chart: @builder.chart.to_h } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
suricate-0.0.2 | lib/suricate/widgets/responses/chart_widget_response.rb |