Class: OvirtSDK4::DomainGroupService
- Inherits:
-
Service
- Object
- Service
- OvirtSDK4::DomainGroupService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary (collapse)
-
- (Group) get(opts = {})
Returns the representation of the object managed by this service.
-
- (Service) service(path)
Locates the service corresponding to the given path.
-
- (String) to_s
Returns an string representation of this service.
Instance Method Details
- (Group) get(opts = {})
Returns the representation of the object managed by this service.
6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 |
# File 'lib/ovirtsdk4/services.rb', line 6153 def get(opts = {}) query = {} request = Request.new(:method => :GET, :path => @path, :query => query) response = @connection.send(request) case response.code when 200 begin reader = XmlReader.new(response.body) return GroupReader.read_one(reader) ensure reader.close end else check_fault(response) end end |
- (Service) service(path)
Locates the service corresponding to the given path.
6177 6178 6179 6180 6181 6182 |
# File 'lib/ovirtsdk4/services.rb', line 6177 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
- (String) to_s
Returns an string representation of this service.
6189 6190 6191 |
# File 'lib/ovirtsdk4/services.rb', line 6189 def to_s return "#<#{DomainGroupService}:#{@path}>" end |