Sha256: e7455a990c853bdbc7ca4bfa91c3db878933f5e5e363f3686d58207bf90118e1
Contents?: true
Size: 859 Bytes
Versions: 3
Compression:
Stored size: 859 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 def [](index, options = {}) to_table[index] end alias_method :row, :[] def empty? true end def column(index) table[index] end def include_row?(row = nil) false end def include_column?(row = nil) false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.10 | lib/gooddata/models/empty_result.rb |
gooddata-0.6.9 | lib/gooddata/models/empty_result.rb |
gooddata-0.6.8 | lib/gooddata/models/empty_result.rb |