Method: LicenseAcceptance::Product#==

Defined in:
lib/license_acceptance/product.rb

#==(other) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/license_acceptance/product.rb', line 15

def ==(other)
  return false if other.class != Product

  if other.id == id &&
      other.pretty_name == pretty_name &&
      other.filename == filename &&
      other.mixlib_name == mixlib_name &&
      other.license_required_version == license_required_version
    return true
  end

  false
end