ExDisco.Types.Image (ex_disco v0.1.0)

Copy Markdown View Source

A Discogs image — covers both full-size and thumbnail URIs.

Summary

Functions

Extracts the primary image from the images list

Types

t()

@type t() :: %ExDisco.Types.Image{
  height: pos_integer() | nil,
  resource_url: String.t() | nil,
  type: String.t() | nil,
  uri: String.t(),
  uri150: String.t() | nil,
  width: pos_integer() | nil
}

Functions

get_primary_image(images)

@spec get_primary_image([t()]) :: t() | nil

Extracts the primary image from the images list