Sha256: ec4e3a410c5575437c8cb82b9d3c83b95b37a5f474f7b58038db4c258c9eb442

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

module OldSql
  module ReportDesign
    class ChartItem
      attr_accessor :chart_data, :key
      
      def initialize(key, value)
        @key = key
        @value = value
        @chart_data = []
        
        @value.split(" ").each {|chart_data| @chart_data << ChartData.new(chart_data)}
      end
      
      def expression?
        if @chart_data.count>1
          return true
        else
          return false
        end
      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_item.rb
old_sql-1.15.0 lib/old_sql/report_design/chart_item.rb
old_sql-1.14.0 lib/old_sql/report_design/chart_item.rb