class GoodData::VariableUserFilter
Public Instance Methods
Source
# File lib/gooddata/models/user_filters/variable_user_filter.rb, line 26 def replace(mapping) x = GoodData::MdObject.replace_quoted(self, mapping) x = GoodData::MdObject.replace_bracketed(x, mapping) vals = GoodData::MdObject.find_replaceable_values(x, mapping) GoodData::MdObject.replace_bracketed(x, vals) end
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.
@param [Array<Array>]Mapping specifying what should be exchanged for what. As mapping should be used output of GoodData::Helpers.prepare_mapping
. @return [GoodData::VariableUserFilter]
Source
# File lib/gooddata/models/user_filters/variable_user_filter.rb, line 14 def save res = client.post(uri, :variable => @json) @json[:uri] = res['uri'] self end
Creates or updates the variable user filter on the server
@return [String]