Method: GoodData::Report#replace
- Defined in:
- lib/gooddata/models/metadata/report.rb
#replace(mapping) ⇒ GoodData::Report
Method used for replacing values in their state according to mapping. Can be used to replace any values but it is typically used to replace the URIs. Returns a new object of the same type.
231 232 233 234 235 236 237 |
# File 'lib/gooddata/models/metadata/report.rb', line 231 def replace(mapping) new_defs = definitions.map do |rep_def| rep_def.replace(mapping) end new_defs.pmap(&:save) self end |