Class: Halffare::Price
- Inherits:
-
Object
- Object
- Halffare::Price
- Defined in:
- lib/halffare/price.rb
Instance Method Summary collapse
- #get(order) ⇒ Object
-
#initialize(strategy) ⇒ Price
constructor
A new instance of Price.
Constructor Details
#initialize(strategy) ⇒ Price
3 4 5 |
# File 'lib/halffare/price.rb', line 3 def initialize (strategy) @strategy = strategy end |
Instance Method Details
#get(order) ⇒ Object
7 8 9 |
# File 'lib/halffare/price.rb', line 7 def get(order) @strategy.get(order) end |