Sha256: ae9f88d9e0a3de66198885740c14e19d13ca74bb3b7a831ec982d9c7d59102b2
Contents?: true
Size: 497 Bytes
Versions: 6
Compression:
Stored size: 497 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 end end
Version data entries
6 entries across 6 versions & 1 rubygems