Class: SpotifyWebApi::ReleaseDatePrecisionEnum

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

Overview

The precision with which ‘release_date` value is known.

Constant Summary collapse

RELEASE_DATE_PRECISION_ENUM =
[
  # TODO: Write general description for YEAR
  YEAR = 'year'.freeze,

  # TODO: Write general description for MONTH
  MONTH = 'month'.freeze,

  # TODO: Write general description for DAY
  DAY = 'day'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/spotify_web_api/models/release_date_precision_enum.rb', line 20

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

  RELEASE_DATE_PRECISION_ENUM.include?(value)
end