Files
music_library/lib/last_fm/config.ex
T
2024-12-03 08:56:23 +00:00

19 lines
387 B
Elixir

defmodule LastFm.Config do
@type t :: %{
api: module(),
api_key: String.t(),
user: String.t(),
refresh_interval: pos_integer()
}
defstruct api: LastFm.Api,
api_key: "",
user: "",
refresh_interval: 60_000
@spec new(Enumerable.t()) :: t()
def new(opts) do
struct(__MODULE__, opts)
end
end