Class: Shared::MutableCollection Abstract

Inherits:
Collection show all
Defined in:
lib/vas/shared/mutable_collection.rb

Overview

This class is abstract.

A collection that allows items to be deleted from it

Instance Attribute Summary

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Collection

#each, #initialize

Constructor Details

This class inherits a constructor from Shared::Collection

Instance Method Details

#delete(entry) ⇒ void

This method returns an undefined value.

Deletes the item from the collection



24
25
26
# File 'lib/vas/shared/mutable_collection.rb', line 24

def delete(entry)
  client.delete(entry.location)
end