Class: PostFinanceCheckout::RestAddressFormatField
- Inherits:
-
Object
- Object
- PostFinanceCheckout::RestAddressFormatField
- Defined in:
- lib/postfinancecheckout-ruby-sdk/models/rest_address_format_field.rb
Constant Summary collapse
- GIVEN_NAME =
'GIVEN_NAME'.freeze
- FAMILY_NAME =
'FAMILY_NAME'.freeze
- ORGANIZATION_NAME =
'ORGANIZATION_NAME'.freeze
- STREET =
'STREET'.freeze
- DEPENDENT_LOCALITY =
'DEPENDENT_LOCALITY'.freeze
- CITY =
'CITY'.freeze
- POSTAL_STATE =
'POSTAL_STATE'.freeze
- POST_CODE =
'POST_CODE'.freeze
- SORTING_CODE =
'SORTING_CODE'.freeze
- COUNTRY =
'COUNTRY'.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
37 38 39 40 41 |
# File 'lib/postfinancecheckout-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 |