Class: OvirtSDK4::SystemOptionsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#option_service(id) ⇒ SystemOptionService
Returns a reference to the service that provides values of specific configuration option.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#option_service(id) ⇒ SystemOptionService
Returns a reference to the service that provides values of specific configuration option.
26163 26164 26165 |
# File 'lib/ovirtsdk4/services.rb', line 26163 def option_service(id) SystemOptionService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 |
# File 'lib/ovirtsdk4/services.rb', line 26174 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return option_service(path) end return option_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |