Method: Clustr::ClusterCollection#initialize
- Defined in:
- lib/clustr/cluster_collection.rb
#initialize(configurations = {}) ⇒ ClusterCollection
Initializes a collection of Clustr::Cluster instances, by looping through the configurations that have been passed in.
22 23 24 25 26 |
# File 'lib/clustr/cluster_collection.rb', line 22 def initialize(configurations = {}) configurations.each do |name, config| self[name] = Clustr::Cluster.new(name, config) end end |