Sha256: a94a5fb5e69f491a3374df44143f4cdaf93f73f0c51e36d32638e759b77c2c6b
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
require File.join(File.dirname(__FILE__), "metadata.rb") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0.pre11 | lib/gooddata/models/data_set.rb |