class OvirtSDK4::ProbeResult
The probe returns an array of instances of this class.
Attributes
version[R]
Public Class Methods
new(opts)
click to toggle source
This method is used to initialize a class instance,
@param opts [Hash] The attributes of the result.
@option opts [String] :version The version obtained as the result of the probe.
# File lib/ovirtsdk4/probe.rb, line 302 def initialize(opts) @version = opts[:version] end
Public Instance Methods
==(other)
click to toggle source
Override the comparison method.
# File lib/ovirtsdk4/probe.rb, line 307 def ==(other) other.class == self.class && other.state == state end
Also aliased as: eql?
hash()
click to toggle source
Should always be overriden if one overrides ==, used to get a hash value for the object.
# File lib/ovirtsdk4/probe.rb, line 315 def hash state.hash end
state()
click to toggle source
@api private
# File lib/ovirtsdk4/probe.rb, line 320 def state [version] end