class Wallee::RestAddressFormatField
Constants
- CITY
- COUNTRY
- DEPENDENT_LOCALITY
- FAMILY_NAME
- GIVEN_NAME
- ORGANIZATION_NAME
- POSTAL_STATE
- POST_CODE
- SORTING_CODE
- STREET
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/wallee-ruby-sdk/models/rest_address_format_field.rb, line 37 def build_from_hash(value) constantValues = RestAddressFormatField.constants.select { |c| RestAddressFormatField::const_get(c) == value } raise "Invalid ENUM value #{value} for class #RestAddressFormatField" if constantValues.empty? value end