Module: Shared::Deletable
- Included in:
- Gemfire::ApplicationCodeImage, Gemfire::DiskStore, Gemfire::PendingApplicationCode, Gemfire::Statistic, RabbitMq::Plugin, RabbitMq::PluginImage, Group, Installation, InstallationImage, Instance, Log, PendingConfiguration, TcServer::Application, TcServer::Revision, TcServer::RevisionImage, TcServer::Template, TcServer::TemplateImage, VFabric::Node
- Defined in:
- lib/vas/shared/deletable.rb
Overview
The Deletable
mixin provides classes with support for deletion. The class must provide two instance variables: client and location
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#delete ⇒ Object
Performs a delete.
Instance Attribute Details
#collection ⇒ Object
24 25 26 |
# File 'lib/vas/shared/deletable.rb', line 24 def collection @collection end |
Instance Method Details
#delete ⇒ Object
Performs a delete. If a collection is available it is reloaded
27 28 29 30 |
# File 'lib/vas/shared/deletable.rb', line 27 def delete @client.delete(@location) @collection.reload unless @collection.nil? end |