Class: OvirtSDK4::DomainGroupsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#group_service(id) ⇒ DomainGroupService
Locates the
group
service. -
#list(opts = {}) ⇒ Array<Group>
Returns the list of groups.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#group_service(id) ⇒ DomainGroupService
Locates the group
service.
8255 8256 8257 |
# File 'lib/ovirtsdk4/services.rb', line 8255 def group_service(id) DomainGroupService.new(self, id) end |
#list(opts = {}) ⇒ Array<Group>
Returns the list of groups.
The order of the returned list of groups isn’t guaranteed.
8244 8245 8246 |
# File 'lib/ovirtsdk4/services.rb', line 8244 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 |
# File 'lib/ovirtsdk4/services.rb', line 8266 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return group_service(path) end return group_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |