Class: Shared::Collection
- Defined in:
- lib/vas/shared/collection.rb
Direct Known Subclasses
Gemfire::AgentLiveConfigurations, Gemfire::CacheServerLiveConfigurations, Gemfire::LiveApplicationCodes, Gemfire::LocatorLiveConfigurations, Gemfire::Nodes, RabbitMq::LiveConfigurations, RabbitMq::Nodes, MutableCollection, NodeInstances, TcServer::LiveConfigurations, TcServer::NodeApplications, TcServer::NodeRevisions, TcServer::Nodes, VFabric::Nodes
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#each ⇒ Object
Gets the items in the collection from the server.
Instance Method Details
#each ⇒ Object
Gets the items in the collection from the server. Calls the block once for each item.
34 35 36 37 38 39 40 41 42 |
# File 'lib/vas/shared/collection.rb', line 34 def each # :yields: item items = client.get(location)[@type] if (!items.nil?) client.get(location)[@type].each { |item| yield entry_class.new(Util::LinkUtils.get_self_link_href(item), client) } end end |