Add Transform.new/1

This commit is contained in:
Claudio Ortolina
2025-09-19 23:58:09 +03:00
parent 2e8399c44b
commit c5d856fdd8
4 changed files with 6 additions and 4 deletions
+2
View File
@@ -5,6 +5,8 @@ defmodule MusicLibrary.Assets.Transform do
@type t :: %__MODULE__{}
@type payload :: String.t()
def new(attrs \\ %{}), do: struct!(__MODULE__, attrs)
@doc """
iex> alias MusicLibrary.Assets.Transform
iex> transform = %Transform{hash: "abc123", width: 300}