Class: PostFinanceCheckout::TokenVersionState
- Inherits:
-
Object
- Object
- PostFinanceCheckout::TokenVersionState
- Defined in:
- lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb
Constant Summary collapse
- UNINITIALIZED =
'UNINITIALIZED'.freeze
- ACTIVE =
'ACTIVE'.freeze
- OBSOLETE =
'OBSOLETE'.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
30 31 32 33 34 |
# File 'lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb', line 30 def build_from_hash(value) constantValues = TokenVersionState.constants.select { |c| TokenVersionState::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TokenVersionState" if constantValues.empty? value end |