Class: SpotifyWebApi::AlbumGroupEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/spotify_web_api/models/album_group_enum.rb

Overview

This field describes the relationship between the artist and the album.

Constant Summary collapse

ALBUM_GROUP_ENUM =
[
  # TODO: Write general description for ALBUM
  ALBUM = 'album'.freeze,

  # TODO: Write general description for SINGLE
  SINGLE = 'single'.freeze,

  # TODO: Write general description for COMPILATION
  COMPILATION = 'compilation'.freeze,

  # TODO: Write general description for APPEARS_ON
  APPEARS_ON = 'appears_on'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/spotify_web_api/models/album_group_enum.rb', line 23

def self.validate(value)
  return false if value.nil?

  ALBUM_GROUP_ENUM.include?(value)
end