class LicenseAcceptance::Product

Attributes

filename[R]
id[R]
license_required_version[R]
mixlib_name[R]
pretty_name[R]

Public Class Methods

new(id, pretty_name, filename, mixlib_name, license_required_version) click to toggle source
# File lib/license_acceptance/product.rb, line 6
def initialize(id, pretty_name, filename, mixlib_name, license_required_version)
  # id is the internal representation of this product as license-acceptance knows it
  @id = id
  @pretty_name = pretty_name
  @filename = filename
  @mixlib_name = mixlib_name
  @license_required_version = license_required_version
end

Public Instance Methods

==(other) click to toggle source
# 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