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 HTTP/1.1
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>
12879 12880 12881 |
# File 'lib/ovirtsdk4/services.rb', line 12879 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
12890 12891 12892 12893 12894 12895 |
# File 'lib/ovirtsdk4/services.rb', line 12890 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |