Packages

A wrapper around the last.fm API to make fetching/parsing tracks easier. Still in early development.

Retired package: Deprecated - retired

Current section

Files

Jump to
last_fm_wrapper lib last_fm_wrapper printer.ex
Raw

lib/last_fm_wrapper/printer.ex

defmodule LastFmWrapper.Printer do
alias LastFmWrapper.Configuration
@spec print(map, Configuration.t()) :: map
def print(track, %Configuration{print: true}) do
track
|> IO.inspect()
end
def print(track, _) do
track
end
end