mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-17 11:54:22 +01:00
14 lines
299 B
Ruby
14 lines
299 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Items that can be added to the shopping cart
|
||
|
module CartItem; end
|
||
|
|
||
|
# This is an abstract class implemented by classes that can be added to the shopping cart
|
||
|
class CartItem::BaseItem
|
||
|
self.abstract_class = true
|
||
|
|
||
|
def price
|
||
|
{ elements: {}, amount: 0 }
|
||
|
end
|
||
|
end
|