Class: AliseeksApi::NonRealtimeCurrency

Inherits:
Object
  • Object
show all
Defined in:
lib/aliseeks_api/models/non_realtime_currency.rb

Constant Summary collapse

AUD =
'AUD'.freeze
BRL =
'BRL'.freeze
CAD =
'CAD'.freeze
CHF =
'CHF'.freeze
CLP =
'CLP'.freeze
CNY =
'CNY'.freeze
EUR =
'EUR'.freeze
GBP =
'GBP'.freeze
IDR =
'IDR'.freeze
JPY =
'JPY'.freeze
KRW =
'KRW'.freeze
MXN =
'MXN'.freeze
NZD =
'NZD'.freeze
PLN =
'PLN'.freeze
RUB =
'RUB'.freeze
SEK =
'SEK'.freeze
SGD =
'SGD'.freeze
TRY =
'TRY'.freeze
UAH =
'UAH'.freeze
USD =
'USD'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



42
43
44
45
46
# File 'lib/aliseeks_api/models/non_realtime_currency.rb', line 42

def build_from_hash(value)
  constantValues = NonRealtimeCurrency.constants.select { |c| NonRealtimeCurrency::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #NonRealtimeCurrency" if constantValues.empty?
  value
end