ExUssd.Route (ExUssd v0.1.3) View Source

Link to this section Summary

Functions

Process text and service_code infomation to produce routes

Link to this section Functions

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"}