Class: Shared::MutableGroup
- Defined in:
- lib/vas/shared/groups.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Group
Attributes inherited from Resource
Instance Method Summary collapse
-
#update(nodes) ⇒ Object
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) ⇒ Object
Updates the group to contain the given nodes
.
66 67 68 69 70 |
# File 'lib/vas/shared/groups.rb', line 66 def update(nodes) node_locations = [] nodes.each { |node| node_locations << node.location } client.post(location, {:nodes => node_locations}) end |