Method: VirtualBox::StorageController.populate_array_relationship
- Defined in:
- lib/virtualbox/storage_controller.rb
.populate_array_relationship(caller, imachine) ⇒ Array<StorageController>
Populates a has many relationship for a VM.
This method typically won't be used except internally.
69 70 71 72 73 74 75 76 77 |
# File 'lib/virtualbox/storage_controller.rb', line 69 def populate_array_relationship(caller, imachine) relation = Proxies::Collection.new(caller) imachine.storage_controllers.each do |icontroller| relation << new(caller, icontroller) end relation end |