Class: Freeclimb::SMSTenDLCBrandStockExchange

Inherits:
Object
  • Object
show all
Defined in:
lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb

Constant Summary collapse

NONE =
"NONE".freeze
NASDAQ =
"NASDAQ".freeze
NYSE =
"NYSE".freeze
AMEX =
"AMEX".freeze
AMX =
"AMX".freeze
ASX =
"ASX".freeze
B3 =
"B3".freeze
BME =
"BME".freeze
BSE =
"BSE".freeze
FRA =
"FRA".freeze
ICEX =
"ICEX".freeze
JPX =
"JPX".freeze
JSE =
"JSE".freeze
KRX =
"KRX".freeze
LON =
"LON".freeze
NSE =
"NSE".freeze
OMX =
"OMX".freeze
SEHK =
"SEHK".freeze
SGX =
"SGX".freeze
SSE =
"SSE".freeze
STO =
"STO".freeze
SWX =
"SWX".freeze
SZSE =
"SZSE".freeze
TSX =
"TSX".freeze
TWSE =
"TWSE".freeze
VSE =
"VSE".freeze
OTHER =
"OTHER".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class 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



47
48
49
# File 'lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb', line 47

def self.build_from_hash(value)
  new.build_from_hash(value)
end

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



54
55
56
57
58
# File 'lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb', line 54

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