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
MERGE_NONSTANDARD_VALUE =
"MERGE_NONSTANDARD_VALUE".freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#raw_valueObject

Returns the value of attribute raw_value.



30
31
32
# File 'lib/merge_hris_client/models/ethnicity_enum.rb', line 30

def raw_value
  @raw_value
end

#valueObject

Returns the value of attribute value.



29
30
31
# File 'lib/merge_hris_client/models/ethnicity_enum.rb', line 29

def value
  @value
end

Class Method Details

.build_from_hash(value) ⇒ Object



46
47
48
# File 'lib/merge_hris_client/models/ethnicity_enum.rb', line 46

def self.build_from_hash(value)
  EthnicityEnum.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



35
36
37
38
39
40
41
42
43
44
# File 'lib/merge_hris_client/models/ethnicity_enum.rb', line 35

def build_from_hash(value)
  @raw_value = value
  if ["AMERICAN_INDIAN_OR_ALASKA_NATIVE", "ASIAN_OR_INDIAN_SUBCONTINENT", "BLACK_OR_AFRICAN_AMERICAN", "HISPANIC_OR_LATINO", "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", "TWO_OR_MORE_RACES", "WHITE", "PREFER_NOT_TO_DISCLOSE", ].include? value
    @value = value
  else
    @value = MERGE_NONSTANDARD_VALUE
  end

  self
end