Class: Devdraft::BridgePaymentRail
- Inherits:
-
Object
- Object
- Devdraft::BridgePaymentRail
- Defined in:
- lib/devdraft/models/bridge_payment_rail.rb
Constant Summary collapse
- ETHEREUM =
"ethereum".freeze
- SOLANA =
"solana".freeze
- POLYGON =
"polygon".freeze
- AVALANCHE_C_CHAIN =
"avalanche_c_chain".freeze
- BASE =
"base".freeze
- ARBITRUM =
"arbitrum".freeze
- OPTIMISM =
"optimism".freeze
- STELLAR =
"stellar".freeze
- TRON =
"tron".freeze
- BRIDGE_WALLET =
"bridge_wallet".freeze
- WIRE =
"wire".freeze
- ACH =
"ach".freeze
- ACH_PUSH =
"ach_push".freeze
- ACH_SAME_DAY =
"ach_same_day".freeze
- SEPA =
"sepa".freeze
- SWIFT =
"swift".freeze
- SPEI =
"spei".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
36 37 38 |
# File 'lib/devdraft/models/bridge_payment_rail.rb', line 36 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 |
.build_from_hash(value) ⇒ String
Builds the enum from string
43 44 45 |
# File 'lib/devdraft/models/bridge_payment_rail.rb', line 43 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
50 51 52 53 |
# File 'lib/devdraft/models/bridge_payment_rail.rb', line 50 def build_from_hash(value) return value if BridgePaymentRail.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #BridgePaymentRail" end |