Sha256: c0d66880c53cc43fd3d9d6954f147805db0c9a8722d60cc5c1379dd9359d6ad6

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module Suricate
  class ChartSerie
    attr_reader :name, :values, :color

    def initialize(name, values, color)
      @name   = name
      @values = values
      @color  = color
    end

    def to_h
      {
        name: @name,
        values: @values,
        color: @color
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
suricate-0.0.4 lib/suricate/charts/chart_serie.rb
suricate-0.0.3 lib/suricate/charts/chart_serie.rb
suricate-0.0.2 lib/suricate/charts/chart_serie.rb