Class: Wallee::TransactionVoidState
- Inherits:
-
Object
- Object
- Wallee::TransactionVoidState
- Defined in:
- lib/wallee-ruby-sdk/models/transaction_void_state.rb
Constant Summary collapse
- CREATE =
'CREATE'.freeze
- PENDING =
'PENDING'.freeze
- FAILED =
'FAILED'.freeze
- SUCCESSFUL =
'SUCCESSFUL'.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/wallee-ruby-sdk/models/transaction_void_state.rb', line 31 def build_from_hash(value) constantValues = TransactionVoidState.constants.select { |c| TransactionVoidState::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TransactionVoidState" if constantValues.empty? value end |