Runbox.Scenario.Asset (runbox v7.0.1)

Utilities for working with Asset

Link to this section Summary

Functions

Split asset id by the last slash.

Link to this section Functions

Link to this function

split_id(asset_id)

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

Split asset id by the last slash.

example

Example

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