Module: KktShoppe::OrderableItem
- Defined in:
- lib/kkt_shoppe/orderable_item.rb
Overview
All items which can be ordered should include this module and ensure that all methods have been overridden. It’s a lazy-mans protocol.
Instance Method Summary collapse
- #cost_price ⇒ Object
-
#full_name ⇒ Object
stock_level_adjustments must be an association.
- #in_stock? ⇒ Boolean
- #orderable? ⇒ Boolean
- #price ⇒ Object
- #sku ⇒ Object
- #stock ⇒ Object
- #stock_control? ⇒ Boolean
- #tax_rate ⇒ Object
- #weight ⇒ Object
Instance Method Details
#cost_price ⇒ Object
20 21 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 20 def cost_price end |
#full_name ⇒ Object
stock_level_adjustments must be an association
8 9 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 8 def full_name end |
#in_stock? ⇒ Boolean
29 30 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 29 def in_stock? end |
#orderable? ⇒ Boolean
11 12 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 11 def orderable? end |
#price ⇒ Object
17 18 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 17 def price end |
#sku ⇒ Object
14 15 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 14 def sku end |
#stock ⇒ Object
32 33 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 32 def stock end |
#stock_control? ⇒ Boolean
26 27 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 26 def stock_control? end |
#tax_rate ⇒ Object
23 24 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 23 def tax_rate end |
#weight ⇒ Object
35 36 |
# File 'lib/kkt_shoppe/orderable_item.rb', line 35 def weight end |