class OvirtSDK4::ProductInfo
def ==(other)
Returns `true` if `self` and `other` have the same attributes and values.
def ==(other) super && @instance_id == other.instance_id && @name == other.name && @vendor == other.vendor && @version == other.version end
def hash
Generates a hash value for this object.
def hash super + @instance_id.hash + @name.hash + @vendor.hash + @version.hash end
def initialize(opts = {})
(**opts)-
:version(Version, Hash) -- The value of attribute `version`. -
:vendor(String) -- The value of attribute `vendor`. -
:name(String) -- The value of attribute `name`. -
:instance_id(String) -- The value of attribute `instance_id`.
Parameters:
-
opts(Hash) -- A hash containing the attributes of the object. The keys of the hash
def initialize(opts = {}) super(opts) self.instance_id = opts[:instance_id] self.name = opts[:name] self.vendor = opts[:vendor] self.version = opts[:version] end
def instance_id
-
(String)-
def instance_id @instance_id end
def instance_id=(value)
-
value(String) --
def instance_id=(value) @instance_id = value end
def name
-
(String)-
def name @name end
def name=(value)
-
value(String) --
def name=(value) @name = value end
def vendor
-
(String)-
def vendor @vendor end
def vendor=(value)
-
value(String) --
def vendor=(value) @vendor = value end
def version
-
(Version)-
def version @version end
def version=(value)
-
value(Version, Hash) --
def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end