ExUssd.Utils (ExUssd v0.1.0) View Source
Link to this section Summary
Functions
This a helper function that helps simulate ussd call
Link to this section Functions
This a helper function that helps simulate ussd call
Example
iex> ExUssd.Utils.simulate(text: "", session_id: "session_01",
...> menu: ExUssd.Menu.render(
...> name: "Home",
...> handler: fn menu, _api_parameters, _should_handle ->
...> menu
...> |> Map.put(:title, "Welcome")
...> end
...>))
{:ok, "Welcome"}