Method: GoodData::Metric#contain?
- Defined in:
- lib/gooddata/models/metadata/metric.rb
#contain?(item) ⇒ Boolean
Checks that the expression contains certain metadata object. The difference between this and used_by using is in the fact that this is not a transitive closure. it searches only inside the expression
150 151 152 153 |
# File 'lib/gooddata/models/metadata/metric.rb', line 150 def contain?(item) uri = item.respond_to?(:uri) ? item.uri : item expression[uri] != nil end |