Class: HealthVault::WCData::Types::OmbEthnicity

Inherits:
SimpleType
  • Object
show all
Defined in:
lib/wc_data/generated/types/omb_ethnicity.rb

Overview

OmbEthnicity is a string

Class Method Summary collapse

Class Method Details

.american_indian_or_alaska_nativeObject



18
19
20
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 18

def self.american_indian_or_alaska_native
  return 'American Indian or Alaska Native'
end

.asianObject



22
23
24
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 22

def self.asian
  return 'Asian'
end

.black_or_african_americanObject



26
27
28
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 26

def self.black_or_african_american
  return 'Black or African American'
end

.enumObject



42
43
44
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 42

def self.enum
  return ['American Indian or Alaska Native','Asian','Black or African American','Hispanic or Latino','Native Hawaiian or Other Pacific Islander','White']
end

.hispanic_or_latinoObject



30
31
32
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 30

def self.hispanic_or_latino
  return 'Hispanic or Latino'
end

.native_hawaiian_or_other_pacific_islanderObject



34
35
36
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 34

def self.native_hawaiian_or_other_pacific_islander
  return 'Native Hawaiian or Other Pacific Islander'
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 49

def self.valid?(value)
  result = true

  
  result = result && self.enum.include?(value)
  

  
  

  return result
end

.whiteObject



38
39
40
# File 'lib/wc_data/generated/types/omb_ethnicity.rb', line 38

def self.white
  return 'White'
end