Elastex v0.2.0 Elastex.Helper

Contains helper functions for other modules

Summary

Functions

Creates a path string from list of values

Functions

path(list)

Specs

path([String.t]) :: String.t

Creates a path string from list of values.

to_string is call on the list of values so they must implement the String.Chars protocol.

Examples

iex> Elastex.Helper.path(["hello", "world", 1])
"hello/world/1"