Sha256: 84e2c682f6fd4045409ac2e24c548338876eb1e4dcda650ad35a7b802e25e39f

Contents?: true

Size: 574 Bytes

Versions: 6

Compression:

Stored size: 574 Bytes

Contents

# encoding: UTF-8

require_relative 'data_result.rb'

module GoodData
  class EmptyResult < DataResult
    attr_reader :table

    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

    alias_method :to_table, :table
    alias_method :without_column_headers, :table

    def ==(other)
      false
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gooddata-0.6.7 lib/gooddata/models/empty_result.rb
gooddata-0.6.6 lib/gooddata/models/empty_result.rb
gooddata-0.6.5 lib/gooddata/models/empty_result.rb
gooddata-0.6.4 lib/gooddata/models/empty_result.rb
gooddata-0.6.3 lib/gooddata/models/empty_result.rb
gooddata-0.6.2 lib/gooddata/models/empty_result.rb