Class: OvirtSDK4::WeightService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb more...
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Weight
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
permalink #get(opts = {}) ⇒ Weight
Returns the representation of the object managed by this service.
36704 36705 36706 |
# File 'lib/ovirtsdk4/services.rb', line 36704 def get(opts = {}) internal_get(GET, opts) end |
permalink #remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
36729 36730 36731 |
# File 'lib/ovirtsdk4/services.rb', line 36729 def remove(opts = {}) internal_remove(REMOVE, opts) end |
permalink #service(path) ⇒ Service
Locates the service corresponding to the given path.
36740 36741 36742 36743 36744 36745 |
# File 'lib/ovirtsdk4/services.rb', line 36740 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |