Class: VSphereCloud::Resources::Folder
- Inherits:
-
Object
- Object
- VSphereCloud::Resources::Folder
- Defined in:
- lib/cloud/vsphere/resources/folder.rb
Instance Attribute Summary collapse
-
#mob ⇒ Object
readonly
Returns the value of attribute mob.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#path_components ⇒ Object
readonly
Returns the value of attribute path_components.
Instance Method Summary collapse
-
#initialize(path, logger, client, datacenter_name) ⇒ Folder
constructor
A new instance of Folder.
Constructor Details
#initialize(path, logger, client, datacenter_name) ⇒ Folder
Returns a new instance of Folder.
6 7 8 9 10 11 12 13 14 |
# File 'lib/cloud/vsphere/resources/folder.rb', line 6 def initialize(path, logger, client, datacenter_name) @path = path @logger = logger @client = client @datacenter_name = datacenter_name @path_components = path.split('/') @mob = find_or_create_folder(@path_components) end |
Instance Attribute Details
#mob ⇒ Object (readonly)
Returns the value of attribute mob.
4 5 6 |
# File 'lib/cloud/vsphere/resources/folder.rb', line 4 def mob @mob end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/cloud/vsphere/resources/folder.rb', line 4 def path @path end |
#path_components ⇒ Object (readonly)
Returns the value of attribute path_components.
4 5 6 |
# File 'lib/cloud/vsphere/resources/folder.rb', line 4 def path_components @path_components end |