diff --git a/shufflepy/module.py b/shufflepy/module.py index 8eff31e..5115d5c 100644 --- a/shufflepy/module.py +++ b/shufflepy/module.py @@ -98,6 +98,12 @@ def send_message(self, app="", org_id=""): org_id=org_id ) + def transform(self, data, action): + if action == "list_tickets": + return self.list_tickets(data) + else: + raise ValueError(f"Unknown action: {action}") + def list_tickets(self, app="", org_id=""): return self.connect( app=app,