Class: MergeHRISClient::EthnicityEnum

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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