Sha256: dd520aba65e6c7e7bc40a1b93dddfb4e0d06fffd9836f354bf8d01a85fb48da2
Contents?: true
Size: 658 Bytes
Versions: 3
Compression:
Stored size: 658 Bytes
Contents
module GoodData class DataSet < MdObject root_key :dataSet SLI_CTG = 'singleloadinterface' DS_SLI_CTG = 'dataset-singleloadinterface' def sli_enabled? content['mode'] == 'SLI' end def sli raise NoProjectError.new "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.0.pre10 | lib/gooddata/models/data_set.rb |
gooddata-0.6.0.pre9 | lib/gooddata/models/data_set.rb |
gooddata-0.6.0.pre8 | lib/gooddata/models/data_set.rb |