Class: OvirtSDK4::MeasurableService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Direct Known Subclasses
AttachedStorageDomainDiskService, DiskService, GlusterBrickService, GlusterVolumeService, HostNicService, HostNumaNodeService, HostService, StepService, StorageDomainDiskService, VmDiskService, VmNicService, VmService
Instance Method Summary collapse
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#statistics_service ⇒ StatisticsService
Locates the
statistics
service.
Methods inherited from Service
Instance Method Details
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 |
# File 'lib/ovirtsdk4/services.rb', line 14583 def service(path) if path.nil? || path == '' return self end if path == 'statistics' return statistics_service end if path.start_with?('statistics/') return statistics_service.service(path[11..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#statistics_service ⇒ StatisticsService
Locates the statistics
service.
14572 14573 14574 |
# File 'lib/ovirtsdk4/services.rb', line 14572 def statistics_service @statistics_service ||= StatisticsService.new(self, 'statistics') end |