Sha256: eccda1bbb2f066e2a94d4e5433ca8c78a596bfe92e4d4b2733a3919fd7766342

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

module LicenseAcceptance
  class Product

    attr_reader :name, :pretty_name, :filename

    def initialize(name, pretty_name, filename)
      @name = name
      @pretty_name = pretty_name
      @filename = filename
    end

    def ==(other)
      return false if other.class != Product
      if other.name == name &&
         other.pretty_name == pretty_name &&
         other.filename == filename
         return true
      end
      return false
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
license-acceptance-0.2.13 lib/license_acceptance/product.rb
license-acceptance-0.2.10 lib/license_acceptance/product.rb
license-acceptance-0.2.8 lib/license_acceptance/product.rb
license-acceptance-0.2.6 lib/license_acceptance/product.rb
license-acceptance-0.2.1 lib/license_acceptance/product.rb