Module: Shoppe::OrderableItem

Defined in:
lib/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

Instance Method Details

#cost_priceObject


20
21
# File 'lib/shoppe/orderable_item.rb', line 20

def cost_price
end

#full_nameObject

stock_level_adjustments must be an association


8
9
# File 'lib/shoppe/orderable_item.rb', line 8

def full_name
end

#in_stock?Boolean

Returns:

  • (Boolean)

29
30
# File 'lib/shoppe/orderable_item.rb', line 29

def in_stock?
end

#orderable?Boolean

Returns:

  • (Boolean)

11
12
# File 'lib/shoppe/orderable_item.rb', line 11

def orderable?
end

#priceObject


17
18
# File 'lib/shoppe/orderable_item.rb', line 17

def price
end

#skuObject


14
15
# File 'lib/shoppe/orderable_item.rb', line 14

def sku
end

#stockObject


32
33
# File 'lib/shoppe/orderable_item.rb', line 32

def stock
end

#stock_control?Boolean

Returns:

  • (Boolean)

26
27
# File 'lib/shoppe/orderable_item.rb', line 26

def stock_control?
end

#tax_rateObject


23
24
# File 'lib/shoppe/orderable_item.rb', line 23

def tax_rate
end

#weightObject


35
36
# File 'lib/shoppe/orderable_item.rb', line 35

def weight
end