Class: OvirtSDK4::IconService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Icon
Get an icon.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Icon
Get an icon.
GET /ovirt-engine/api/icons/123
You will get a XML response like this one:
<icon id="123">
<data>Some binary data here</data>
<media_type>image/png</media_type>
</icon>
11727 11728 11729 |
# File 'lib/ovirtsdk4/services.rb', line 11727 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
11738 11739 11740 11741 11742 11743 |
# File 'lib/ovirtsdk4/services.rb', line 11738 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |