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 = {})

Options Hash: (**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

Returns:
  • (String) -
def instance_id
  @instance_id
end

def instance_id=(value)

Parameters:
  • value (String) --
def instance_id=(value)
  @instance_id = value
end

def name

Returns:
  • (String) -
def name
  @name
end

def name=(value)

Parameters:
  • value (String) --
def name=(value)
  @name = value
end

def vendor

Returns:
  • (String) -
def vendor
  @vendor
end

def vendor=(value)

Parameters:
  • value (String) --
def vendor=(value)
  @vendor = value
end

def version

Returns:
  • (Version) -
def version
  @version
end

def version=(value)

Parameters:
  • value (Version, Hash) --
def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end