Basic Product class

This commit is contained in:
David Underwood
2026-07-21 09:39:05 -04:00
parent 33fff52042
commit b65eca8356
2 changed files with 37 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
class Product
def initialize(price: 0.00, id:, description: '')
@price = price
@id = id
@description = description
end
def price
@price
end
def id
@id
end
def description
@description
end
end