Class: SpotifyWebApi::ItemType3Enum

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

Overview

The ID type: either ‘artist` or `user`.

Constant Summary collapse

ITEM_TYPE3_ENUM =
[
  # TODO: Write general description for ARTIST
  ARTIST = 'artist'.freeze,

  # TODO: Write general description for USER
  USER = 'user'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



17
18
19
20
21
# File 'lib/spotify_web_api/models/item_type3_enum.rb', line 17

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

  ITEM_TYPE3_ENUM.include?(value)
end