=begin #Pinterest REST API #Pinterest's REST API The version of the OpenAPI document: 5.3.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.4.0 =end require 'date' require 'time' module PinterestSdkClient class Language AM = "AM".freeze AR = "AR".freeze AZ = "AZ".freeze BG = "BG".freeze BN = "BN".freeze BS = "BS".freeze CA = "CA".freeze CS = "CS".freeze DA = "DA".freeze DV = "DV".freeze DZ = "DZ".freeze DE = "DE".freeze EL = "EL".freeze EN = "EN".freeze ES = "ES".freeze ET = "ET".freeze FA = "FA".freeze FI = "FI".freeze FR = "FR".freeze HE = "HE".freeze HI = "HI".freeze HR = "HR".freeze HU = "HU".freeze HY = "HY".freeze ID = "ID".freeze IN = "IN".freeze IS = "IS".freeze IT = "IT".freeze IW = "IW".freeze JA = "JA".freeze KA = "KA".freeze KM = "KM".freeze KO = "KO".freeze LO = "LO".freeze LT = "LT".freeze LV = "LV".freeze MK = "MK".freeze MN = "MN".freeze MS = "MS".freeze MY = "MY".freeze NB = "NB".freeze NE = "NE".freeze NL = "NL".freeze NO = "NO".freeze PL = "PL".freeze PT = "PT".freeze RO = "RO".freeze RU = "RU".freeze SK = "SK".freeze SL = "SL".freeze SQ = "SQ".freeze SR = "SR".freeze SV = "SV".freeze TL = "TL".freeze UK = "UK".freeze VI = "VI".freeze TE = "TE".freeze TH = "TH".freeze TR = "TR".freeze XX = "XX".freeze ZH = "ZH".freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) constantValues = Language.constants.select { |c| Language::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Language" if constantValues.empty? value end end end