Implement discount PORO
This commit is contained in:
parent
86dffbc8fe
commit
337419fe28
7
lib/planet_express/discount.rb
Normal file
7
lib/planet_express/discount.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module PlanetExpress
|
||||||
|
Discount = Struct.new(:amount, :rule) do
|
||||||
|
def inspect
|
||||||
|
"Discount [amount=#{amount} rule=#{rule.inspect}]"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user