Sha256: fc28b8db28fbf4403e9305c5a8907c61bf0bafe3967aeae8834474985bed5127

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

# encoding: UTF-8

require_relative 'data_result.rb'

module GoodData
  class EmptyResult < DataResult
    def initialize(data, options = {})
      super(data)
      @options = options
      assemble_table
    end

    def to_s
      'No Data'
    end

    def assemble_table
      @table = [[]]
      # CSV::Table.new([GoodData::Row.new([],[],false)])
    end

    def to_table
      @table
    end

    def without_column_headers
      @table
    end

    def == (otherDataResult)
      false
    end

    def diff(otherDataResult)
      ['empty']
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.0 lib/gooddata/models/empty_result.rb