The probe returns an array of instances of this class.
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 249 def initialize(opts) @version = opts[:version] end
Override the comparison method.
# File lib/ovirtsdk4/probe.rb, line 254 def ==(other) other.class == self.class && other.state == state end
Should always be overriden if one overrides ==, used to get a hash value for the object.
# File lib/ovirtsdk4/probe.rb, line 262 def hash state.hash end
@api private
# File lib/ovirtsdk4/probe.rb, line 267 def state [version] end