Files
ruby-checkout/product.rb
T
2026-07-21 09:39:05 -04:00

20 lines
235 B
Ruby

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