Class: MergeHRISClient::EthnicityEnum
- Inherits:
-
Object
- Object
- MergeHRISClient::EthnicityEnum
- Defined in:
- lib/merge_hris_client/models/ethnicity_enum.rb
Constant Summary collapse
- AMERICAN_INDIAN_OR_ALASKA_NATIVE =
"AMERICAN_INDIAN_OR_ALASKA_NATIVE".freeze
- ASIAN_OR_INDIAN_SUBCONTINENT =
"ASIAN_OR_INDIAN_SUBCONTINENT".freeze
- BLACK_OR_AFRICAN_AMERICAN =
"BLACK_OR_AFRICAN_AMERICAN".freeze
- HISPANIC_OR_LATINO =
"HISPANIC_OR_LATINO".freeze
- NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER =
"NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER".freeze
- TWO_OR_MORE_RACES =
"TWO_OR_MORE_RACES".freeze
- WHITE =
"WHITE".freeze
- PREFER_NOT_TO_DISCLOSE =
"PREFER_NOT_TO_DISCLOSE".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 |
# File 'lib/merge_hris_client/models/ethnicity_enum.rb', line 30 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 40 |
# File 'lib/merge_hris_client/models/ethnicity_enum.rb', line 37 def build_from_hash(value) constantValues = EthnicityEnum.constants.select { |c| EthnicityEnum::const_get(c) == value } value end |