Class: VSphereCloud::ClusterConfig
- Inherits:
-
Object
- Object
- VSphereCloud::ClusterConfig
- Defined in:
- lib/cloud/vsphere/cluster_config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, config_hash) ⇒ ClusterConfig
constructor
A new instance of ClusterConfig.
- #resource_pool ⇒ Object
Constructor Details
#initialize(name, config_hash) ⇒ ClusterConfig
Returns a new instance of ClusterConfig.
6 7 8 9 |
# File 'lib/cloud/vsphere/cluster_config.rb', line 6 def initialize(name, config_hash) @name = name @config = config_hash end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/cloud/vsphere/cluster_config.rb', line 4 def name @name end |
Instance Method Details
#resource_pool ⇒ Object
11 12 13 |
# File 'lib/cloud/vsphere/cluster_config.rb', line 11 def resource_pool @config['resource_pool'] end |