Sha256: 69910c5a4e0ca5112514f92ff06db29a331ce5df81ecaeddef7018c12f63101c

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

module OldSql
  module ReportDesign
    class Chart
      attr_accessor :type, :items
      
      def initialize(value = [])
        @items = value
      end
      
      def type new_type = nil
        @type = new_type unless new_type.nil?
        @type
      end
      
      def add(key, value)
        @items << ChartItem.new(key, value)
      end
      
      def item(index)
        @items[index]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
old_sql-1.16.0 lib/old_sql/report_design/chart.rb
old_sql-1.15.0 lib/old_sql/report_design/chart.rb
old_sql-1.14.0 lib/old_sql/report_design/chart.rb