Basic Product class
This commit is contained in:
+19
@@ -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
|
||||
Reference in New Issue
Block a user