class SnapTrade::SessionEventType
def self.all_vars
def self.all_vars @all_vars ||= [OAUTH_REDIRECT, DISCLAIMER_ACCEPTED, BROKERAGE_CONNECTION_INITIATED, BROKERAGE_RECONNECT_INITIATED, BROKERAGE_AUTHENTICATION, OAUTH_BROKERAGE_AUTHENTICATION, MFA_REQUESTED, MFA_SUBMITTED, MFA_CHOICE_REQUESTED, MFA_CHOICE_SUBMITTED, CONNECTION_SUCCESSFUL, CONNECTION_FAILED, PARTNER_REDIRECT, CONNECTION_ABORTED, SESSION_STARTED].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 SessionEventType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SessionEventType" end