Class: Halffare::Price

Inherits:
Object
  • Object
show all
Defined in:
lib/halffare/price.rb

Instance Method Summary collapse

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