View Source Runbox.Scenario.Asset (runbox v13.0.3)

Utilities for working with Asset

Summary

Functions

Split asset id by the last slash.

Functions

@spec split_id(String.t()) :: {String.t(), String.t()}

Split asset id by the last slash.

Example

iex> Asset.split_id("/type/id")
{"/type", "id"}
iex> Asset.split_id("id")
{"", "id"}