class GoodData::VariableUserFilter
Public Instance Methods
replace(mapping)
click to toggle source
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]
# 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
save()
click to toggle source
Creates or updates the variable user filter on the server
@return [String]
# 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