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 228 def initialize(opts) @version = opts[:version] end
Public Instance Methods
==(o)
click to toggle source
Override the comparison method.
# File lib/ovirtsdk4/probe.rb, line 233 def ==(o) o.class == self.class && o.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 241 def hash state.hash end
state()
click to toggle source
@api private
# File lib/ovirtsdk4/probe.rb, line 246 def state [version] end