ExUssd.Route.get_route

You're seeing just the function get_route, go back to ExUssd.Route module for more information.

Process text and service_code infomation to produce routes

Parameters

  • %{text: text, service_code: service_code}

    Examples

    iex> ExUssd.Route.get_route(%{text: "544#", service_code: "544#"}) [%{depth: 1, value: "555"}] iex> ExUssd.Route.get_route(%{text: "54423#", service_code: "544#"}) [%{depth: 1, value: "3"}, %{depth: 1, value: "2"}, %{depth: 1, value: "555"}] iex> ExUssd.Route.get_route(%{text: "2", service_code: "*544#"}) %{depth: 1, value: "2"}