Class: MergeHRISClient::MaritalStatusEnum
- Inherits:
-
Object
- Object
- MergeHRISClient::MaritalStatusEnum
- Defined in:
- lib/merge_hris_client/models/marital_status_enum.rb
Constant Summary collapse
- SINGLE =
"SINGLE".freeze
- MARRIED_FILING_JOINTLY =
"MARRIED_FILING_JOINTLY".freeze
- MARRIED_FILING_SEPARATELY =
"MARRIED_FILING_SEPARATELY".freeze
- HEAD_OF_HOUSEHOLD =
"HEAD_OF_HOUSEHOLD".freeze
- QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD =
"QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD".freeze
- MERGE_NONSTANDARD_VALUE =
"MERGE_NONSTANDARD_VALUE".freeze
Instance Attribute Summary collapse
-
#raw_value ⇒ Object
Returns the value of attribute raw_value.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Attribute Details
#raw_value ⇒ Object
Returns the value of attribute raw_value.
27 28 29 |
# File 'lib/merge_hris_client/models/marital_status_enum.rb', line 27 def raw_value @raw_value end |
#value ⇒ Object
Returns the value of attribute value.
26 27 28 |
# File 'lib/merge_hris_client/models/marital_status_enum.rb', line 26 def value @value end |
Class Method Details
.build_from_hash(value) ⇒ Object
43 44 45 |
# File 'lib/merge_hris_client/models/marital_status_enum.rb', line 43 def self.build_from_hash(value) MaritalStatusEnum.new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/merge_hris_client/models/marital_status_enum.rb', line 32 def build_from_hash(value) @raw_value = value if ["SINGLE", "MARRIED_FILING_JOINTLY", "MARRIED_FILING_SEPARATELY", "HEAD_OF_HOUSEHOLD", "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD", ].include? value @value = value else @value = MERGE_NONSTANDARD_VALUE end self end |