Class: Shared::MutableGroup Abstract
- Defined in:
- lib/vas/shared/groups.rb
Overview
This class is abstract.
A group that supports changes to it membership
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Group
Attributes inherited from Resource
Instance Method Summary collapse
-
#update(nodes) ⇒ void
Updates the group to contain the given nodes.
Methods inherited from Group
Constructor Details
This class inherits a constructor from Shared::Group
Instance Method Details
#update(nodes) ⇒ void
This method returns an undefined value.
Updates the group to contain the given nodes
84 85 86 87 88 |
# File 'lib/vas/shared/groups.rb', line 84 def update(nodes) node_locations = [] nodes.each { |node| node_locations << node.location } client.post(location, {:nodes => node_locations}) end |