Packages
last_fm_wrapper
0.1.0-alpha
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
Current section
Files
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