Class: OvirtSDK4::HostNumaNodeService
- Inherits:
-
MeasurableService
- Object
- Service
- MeasurableService
- OvirtSDK4::HostNumaNodeService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ NumaNode
Returns the representation of the object managed by this service.
-
#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
#get(opts = {}) ⇒ NumaNode
Returns the representation of the object managed by this service.
39609 39610 39611 |
# File 'lib/ovirtsdk4/services.rb', line 39609 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
39629 39630 39631 39632 39633 39634 39635 39636 39637 39638 39639 39640 |
# File 'lib/ovirtsdk4/services.rb', line 39629 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.
39618 39619 39620 |
# File 'lib/ovirtsdk4/services.rb', line 39618 def statistics_service @statistics_service ||= StatisticsService.new(self, 'statistics') end |