Spotify Web API v0.4.0 Spotify.Albums.AlbumSimple View Source

A simplified album object.

Spotify Docs

Link to this section Summary

Types

t()

A simplified album object

Functions

Returns each Object Models’ model for json decoding

Link to this section Types

Link to this type t() View Source
t() :: %Spotify.Albums.AlbumSimple{album_type: Spotify.Albums.album_type() | nil, artists: Spotify.Albums.artists() | nil, available_markets: Spotify.Albums.available_markets() | nil, external_urls: Spotify.Albums.external_urls() | nil, href: Spotify.Albums.href() | nil, id: Spotify.Albums.id() | nil, images: Spotify.Albums.images() | nil, name: Spotify.Albums.name() | nil, type: Spotify.Albums.type() | nil, uri: Spotify.Albums.uri() | nil}

A simplified album object.

Link to this section Functions

Returns each Object Models’ model for json decoding.

This callback is passed into Poison.decode :as option for formatting incoming json as structs. Each Object Model should implement it, and nest other Object Models’ as functions in their own as needed.

Callback implementation for Spotify.ObjectModel.as/0.