Method: OvirtSDK4::VmBackupService#service
- Defined in:
- lib/ovirtsdk4/services.rb
#service(path) ⇒ Service
Locates the service corresponding to the given path.
31591 31592 31593 31594 31595 31596 31597 31598 31599 31600 31601 31602 |
# File 'lib/ovirtsdk4/services.rb', line 31591 def service(path) if path.nil? || path == '' return self end if path == 'disks' return disks_service end if path.start_with?('disks/') return disks_service.service(path[6..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |