Exspotify.Structs.Album (Exspotify v0.1.0)

View Source

Represents an album object from Spotify API.

Summary

Functions

Creates an Album struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.Album{
  album_type: String.t() | nil,
  artists: [Exspotify.Structs.Artist.t()] | nil,
  available_markets: [String.t()] | nil,
  copyrights: [map()] | nil,
  external_ids: Exspotify.Structs.ExternalIds.t() | nil,
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  genres: [String.t()] | nil,
  href: String.t() | nil,
  id: String.t(),
  images: [Exspotify.Structs.Image.t()] | nil,
  label: String.t() | nil,
  name: String.t(),
  popularity: integer() | nil,
  release_date: String.t() | nil,
  release_date_precision: String.t() | nil,
  restrictions: map() | nil,
  total_tracks: integer() | nil,
  tracks: map() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates an Album struct from a map (typically from JSON).