Class: WhiteLabelMachineName::TokenizationMode
- Inherits:
-
Object
- Object
- WhiteLabelMachineName::TokenizationMode
- Defined in:
- lib/whitelabelmachinename-ruby-sdk/models/tokenization_mode.rb
Constant Summary collapse
- FORCE_UPDATE =
'FORCE_UPDATE'.freeze
- FORCE_CREATION =
'FORCE_CREATION'.freeze
- FORCE_CREATION_WITH_ONE_CLICK_PAYMENT =
'FORCE_CREATION_WITH_ONE_CLICK_PAYMENT'.freeze
- ALLOW_ONE_CLICK_PAYMENT =
'ALLOW_ONE_CLICK_PAYMENT'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 34 35 |
# File 'lib/whitelabelmachinename-ruby-sdk/models/tokenization_mode.rb', line 31 def build_from_hash(value) constantValues = TokenizationMode.constants.select { |c| TokenizationMode::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TokenizationMode" if constantValues.empty? value end |