Sha256: d879a37414b6989f5951d5c8274d01bd0dd425930616c210e7e81b7d6b863cb0
Contents?: true
Size: 750 Bytes
Versions: 3
Compression:
Stored size: 750 Bytes
Contents
# encoding: UTF-8 require_relative '../metadata.rb' require_relative 'metadata' module GoodData class DataSet < GoodData::MdObject root_key :dataSet SLI_CTG = 'singleloadinterface' DS_SLI_CTG = 'dataset-singleloadinterface' def sli_enabled? content['mode'] == 'SLI' end def sli fail(NoProjectError, 'Connect to a project before searching for an object') unless GoodData.project slis = GoodData.project.md.links(Model::LDM_CTG).links(SLI_CTG)[DS_SLI_CTG] uri = slis[identifier]['link'] MdObject[uri] end def attributes content['attributes'].map { |a| GoodData::Attribute[a] } end def facts content['facts'].map { |a| GoodData::Attribute[a] } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.4 | lib/gooddata/models/metadata/data_set.rb |
gooddata-0.6.3 | lib/gooddata/models/metadata/data_set.rb |
gooddata-0.6.2 | lib/gooddata/models/metadata/data_set.rb |