class SnapTrade::MlegActionStrict
def self.all_vars
def self.all_vars @all_vars ||= [BUY, SELL, BUY_TO_OPEN, BUY_TO_CLOSE, SELL_TO_OPEN, SELL_TO_CLOSE].freeze end
def self.build_from_hash(value)
-
(String)
- The enum value
Parameters:
-
The
(String
) -- enum value in the form of the string
def self.build_from_hash(value) new.build_from_hash(value) end
def build_from_hash(value)
-
(String)
- The enum value
Parameters:
-
The
(String
) -- enum value in the form of the string
def build_from_hash(value) return value if MlegActionStrict.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #MlegActionStrict" end