class Devdraft::BridgePaymentRail

def self.all_vars

def self.all_vars
  @all_vars ||= [ETHEREUM, SOLANA, POLYGON, AVALANCHE_C_CHAIN, BASE, ARBITRUM, OPTIMISM, STELLAR, TRON, BRIDGE_WALLET, WIRE, ACH, ACH_PUSH, ACH_SAME_DAY, SEPA, SWIFT, SPEI].freeze
end

def self.build_from_hash(value)

Returns:
  • (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)

Returns:
  • (String) - The enum value

Parameters:
  • The (String) -- enum value in the form of the string
def build_from_hash(value)
  return value if BridgePaymentRail.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #BridgePaymentRail"
end