Class: LicenseAcceptance::Product
- Inherits:
-
Object
- Object
- LicenseAcceptance::Product
- Defined in:
- lib/license_acceptance/product.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pretty_name ⇒ Object
readonly
Returns the value of attribute pretty_name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, pretty_name, filename) ⇒ Product
constructor
A new instance of Product.
Constructor Details
#initialize(name, pretty_name, filename) ⇒ Product
Returns a new instance of Product.
6 7 8 9 10 |
# File 'lib/license_acceptance/product.rb', line 6 def initialize(name, pretty_name, filename) @name = name @pretty_name = pretty_name @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/license_acceptance/product.rb', line 4 def filename @filename end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/license_acceptance/product.rb', line 4 def name @name end |
#pretty_name ⇒ Object (readonly)
Returns the value of attribute pretty_name.
4 5 6 |
# File 'lib/license_acceptance/product.rb', line 4 def pretty_name @pretty_name end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/license_acceptance/product.rb', line 12 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 |