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.
40636 40637 40638 |
# File 'lib/ovirtsdk4/services.rb', line 40636 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
40656 40657 40658 40659 40660 40661 40662 40663 40664 40665 40666 40667 |
# File 'lib/ovirtsdk4/services.rb', line 40656 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.
40645 40646 40647 |
# File 'lib/ovirtsdk4/services.rb', line 40645 def statistics_service @statistics_service ||= StatisticsService.new(self, 'statistics') end |