Method: OpenapiClient::TransactionType#build_from_hash
- Defined in:
- lib/openapi_client/models/transaction_type.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 40 41 |
# File 'lib/openapi_client/models/transaction_type.rb', line 37 def build_from_hash(value) constantValues = TransactionType.constants.select { |c| TransactionType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TransactionType" if constantValues.empty? value end |