Class: SpotifyWebApi::Type8Enum

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

Overview

The object type.

Constant Summary collapse

TYPE8_ENUM =
[
  # TODO: Write general description for EPISODE
  EPISODE = 'episode'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/spotify_web_api/models/type8_enum.rb', line 14

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

  TYPE8_ENUM.include?(value)
end