Commit 82b88b60 by rakesh.pv

factory v2

parent 1d5a5deb
...@@ -53,12 +53,12 @@ class TradingApp: ...@@ -53,12 +53,12 @@ class TradingApp:
return self.assets return self.assets
@staticmethod @staticmethod
def create_object(x): def create_object(sell_option):
if x == 1: if sell_option == 1:
return SellAll() return SellAll()
if x == 2: if sell_option == 2:
return SellHalf() return SellHalf()
if x == 3: if sell_option == 3:
return SellLittle() return SellLittle()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment