ExUssd.Routes (ExUssd v0.1.1) 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.Routes.get_route(%{text: "*544#", service_code: "*544#"})
[%{depth: 1, value: "555"}]
iex> ExUssd.Routes.get_route(%{text: "*544*2*3#", service_code: "*544#"})
[%{depth: 1, value: "3"}, %{depth: 1, value: "2"}, %{depth: 1, value: "555"}]
iex> ExUssd.Routes.get_route(%{text: "2", service_code: "*544#"})
%{depth: 1, value: "2"}