Method: TransferZero::PayoutMethodGenderEnum#build_from_hash
- Defined in:
- lib/transferzero-sdk/models/payout_method_gender_enum.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 33 34 |
# File 'lib/transferzero-sdk/models/payout_method_gender_enum.rb', line 30 def build_from_hash(value) constantValues = PayoutMethodGenderEnum.constants.select { |c| PayoutMethodGenderEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PayoutMethodGenderEnum" if constantValues.empty? value end |