Method: TransferZero::TransactionState#build_from_hash
- Defined in:
- lib/transferzero-sdk/models/transaction_state.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
39 40 41 42 43 |
# File 'lib/transferzero-sdk/models/transaction_state.rb', line 39 def build_from_hash(value) constantValues = TransactionState.constants.select { |c| TransactionState::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TransactionState" if constantValues.empty? value end |