Class: MnoEnterprise::DeletionRequest
- Inherits:
-
BaseResource
- Object
- BaseResource
- MnoEnterprise::DeletionRequest
- Defined in:
- app/models/mno_enterprise/deletion_request.rb
Instance Method Summary collapse
-
#freeze_account! ⇒ Object
TODO: specs Freeze user acocunt and update the deletion request.
-
#to_param ⇒ Object
Instance methods ============================================ We want to use the token instead of the id.
Methods inherited from BaseResource
#==, base_class, #cache_key, #clear_association_cache, #clear_attribute_changes!, exists?, find_by, first, last, #max_updated_column_timestamp, #read_attribute, #reload, #save, #save!, #update, #write_attribute
Methods included from HerExtension::Validations::RemoteUniquenessValidation
Instance Method Details
#freeze_account! ⇒ Object
TODO: specs Freeze user acocunt and update the deletion request
31 32 33 |
# File 'app/models/mno_enterprise/deletion_request.rb', line 31 def freeze_account! self.put(operation: 'freeze') end |
#to_param ⇒ Object
Instance methods
We want to use the token instead of the id
25 26 27 |
# File 'app/models/mno_enterprise/deletion_request.rb', line 25 def to_param self.token end |