module GoodData::Mixin::MdRelations

Public Instance Methods

dependency(uri, key = nil, opts = { :client => client, :project => project }) click to toggle 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
dependency?(type, obj, opts = { :client => client, :project => project }) click to toggle source

Checks for dependency

# 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
used_by(key = nil, opts = { :client => client, :project => project })
Alias for: usedby
used_by?(obj, opts = { :client => client, :project => project })
Alias for: usedby?
usedby(key = nil, opts = { :client => client, :project => project }) click to toggle source

Returns which objects uses this MD resource

# 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
Also aliased as: used_by
usedby?(obj, opts = { :client => client, :project => project }) click to toggle 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?
using(key = nil, opts = { :client => client, :project => project }) click to toggle source

Returns which objects this MD resource uses

# 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
using?(obj, opts = { :client => client, :project => project }) click to toggle source

Checks if obj is using this MD resource

# File lib/gooddata/mixins/md_relations.rb, line 38
def using?(obj, opts = { :client => client, :project => project })
  dependency?(:using, obj, opts)
end