class AliseeksApi::RealtimeCurrency

Constants

AUD
BRL
CAD
CHF
CLP
EUR
GBP
IDR
KRW
NZD
PLN
RUB
SEK
SGD
TRY
UAH
USD

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/aliseeks_api/models/realtime_currency.rb, line 39
def build_from_hash(value)
  constantValues = RealtimeCurrency.constants.select { |c| RealtimeCurrency::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #RealtimeCurrency" if constantValues.empty?
  value
end