Class: GoodData::VariableUserFilter
- Inherits:
-
UserFilter
- Object
- Rest::Object
- Rest::Resource
- MdObject
- UserFilter
- GoodData::VariableUserFilter
- Defined in:
- lib/gooddata/models/user_filters/variable_user_filter.rb
Constant Summary
Constants inherited from MdObject
MdObject::IDENTIFIERS_CFG, MdObject::MD_OBJ_CTG
Constants included from Mixin::MdIdToUri
Mixin::MdIdToUri::IDENTIFIERS_CFG
Constants included from Mixin::MdObjectIndexer
Mixin::MdObjectIndexer::MD_OBJ_CTG
Constants included from Mixin::MdObjectQuery
Mixin::MdObjectQuery::ERROR_MESSAGE_NO_PROJECT
Instance Attribute Summary
Attributes inherited from Rest::Object
Instance Method Summary collapse
-
#replace(mapping) ⇒ GoodData::VariableUserFilter
Method used for replacing values in their state according to mapping.
-
#save ⇒ String
Creates or updates the variable user filter on the server.
Methods inherited from UserFilter
#==, #delete, #expression, #expression=, #hash, #initialize, #level, #pretty_expression, #related, #related_uri, #uri, #uri=, #variable
Methods inherited from MdObject
#==, #add_tag, #browser_uri, #delete, #deprecated, #deprecated=, find_replaceable_values, #get_flag?, #initialize, #listed?, #production, #production=, #project, #reload!, #remove_tag, replace, #replace!, replace_bracketed, replace_quoted, #restricted, #restricted=, #save_as, #set_flag, #tag_set, #unlisted, #unlisted=, #validate
Methods included from Mixin::MdIdToUri
Methods included from Mixin::MdObjectIndexer
Methods included from Mixin::MdObjectQuery
#all, #dependency, #dependency?, #query, #usedby, #usedby?, #using, #using?
Methods included from Mixin::MdFinders
#find_by_identifier, #find_by_tag, #find_by_title, #find_first_by_identifier, #find_first_by_title
Methods included from Mixin::MdObjId
Methods included from Mixin::MdGrantees
#change_permission, #grant, #grantees, #revoke
Methods included from Mixin::MdRelations
#dependency, #dependency?, #usedby, #usedby?, #using, #using?
Methods included from Mixin::ObjId
Methods included from Mixin::Links
Methods inherited from Rest::Resource
Methods inherited from Rest::Object
client, default_client, #initialize, #saved?
Methods included from Mixin::DataPropertyReader
Methods included from Mixin::DataPropertyWriter
Methods included from Mixin::MetaPropertyReader
Methods included from Mixin::MetaPropertyWriter
Methods included from Mixin::MetaGetter
Methods included from Mixin::DataGetter
Methods included from Mixin::RootKeyGetter
Methods included from Mixin::ContentGetter
Constructor Details
This class inherits a constructor from GoodData::UserFilter
Instance Method Details
#replace(mapping) ⇒ GoodData::VariableUserFilter
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.
26 27 28 29 30 31 |
# 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 ⇒ String
Creates or updates the variable user filter on the server
14 15 16 17 18 |
# 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 |