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
statisticsservice.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ NumaNode
Returns the representation of the object managed by this service.
40076 40077 40078 |
# File 'lib/ovirtsdk4/services.rb', line 40076 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
40096 40097 40098 40099 40100 40101 40102 40103 40104 40105 40106 40107 |
# File 'lib/ovirtsdk4/services.rb', line 40096 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.
40085 40086 40087 |
# File 'lib/ovirtsdk4/services.rb', line 40085 def statistics_service @statistics_service ||= StatisticsService.new(self, 'statistics') end |