Method: OvirtSDK4::AffinityGroupHostService#service

Defined in:
lib/ovirtsdk4/services.rb

#service(path) ⇒ Service

Locates the service corresponding to the given path.

Parameters:

  • path (String)

    The path of the service.

Returns:

  • (Service)

    A reference to the service.

Raises:



1109
1110
1111
1112
1113
1114
# File 'lib/ovirtsdk4/services.rb', line 1109

def service(path)
  if path.nil? || path == ''
    return self
  end
  raise Error.new("The path \"#{path}\" doesn't correspond to any service")
end