Class: Halffare::PriceBase
- Inherits:
-
Object
- Object
- Halffare::PriceBase
- Defined in:
- lib/halffare/price_base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#get(order) ⇒ Object
Extracts the prices from an order.
- #halffare=(hf) ⇒ Object
Instance Method Details
#get(order) ⇒ Object
Extracts the prices from an order.
8 9 10 |
# File 'lib/halffare/price_base.rb', line 8 def get(order) raise 'you need to implement get(order) in your price strategy' end |
#halffare=(hf) ⇒ Object
12 13 14 |
# File 'lib/halffare/price_base.rb', line 12 def halffare=(hf) @halffare = hf end |