module GoodData::Mixin::MdRelations
Public Instance Methods
Source
# File lib/gooddata/mixins/md_relations.rb, line 10 def dependency(uri, key = nil, opts = { :client => client, :project => project }) GoodData::MdObject.dependency(uri, key, opts) end
Source
# File lib/gooddata/mixins/md_relations.rb, line 15 def dependency?(type, obj, opts = { :client => client, :project => project }) GoodData::MdObject.dependency?(type, self, obj, opts) end
Checks for dependency
Source
# File lib/gooddata/mixins/md_relations.rb, line 20 def usedby(key = nil, opts = { :client => client, :project => project }) dependency("#{project.md['usedby2']}/#{obj_id}", key, { :client => client, :project => project }.merge(opts)) end
Returns which objects uses this MD resource
Also aliased as: used_by
Source
# File lib/gooddata/mixins/md_relations.rb, line 31 def usedby?(obj, opts = { :client => client, :project => project }) GoodData::MdObject.used_by?(self, obj, opts) end
Also aliased as: used_by?
Source
# File lib/gooddata/mixins/md_relations.rb, line 27 def using(key = nil, opts = { :client => client, :project => project }) dependency("#{project.md['using2']}/#{obj_id}", key, { :client => client, :project => project }.merge(opts)) end
Returns which objects this MD resource uses
Source
# File lib/gooddata/mixins/md_relations.rb, line 38 def using?(obj, opts = { :client => client, :project => project }) dependency?(:using, obj, opts) end
Checks if obj is using this MD resource