Exspotify.Structs.Category (Exspotify v0.1.0)

View Source

Represents a Spotify category object.

A category in Spotify is used to tag items and help organize content.

Summary

Functions

Creates a Category struct from a map (typically from JSON API response).

Types

t()

@type t() :: %Exspotify.Structs.Category{
  href: String.t() | nil,
  icons: [Exspotify.Structs.Image.t()],
  id: String.t(),
  name: String.t()
}

Functions

from_map(category_map)

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

Creates a Category struct from a map (typically from JSON API response).