Class: MergeHRISClient::RequestTypeEnum
- Inherits:
-
Object
- Object
- MergeHRISClient::RequestTypeEnum
- Defined in:
- lib/merge_hris_client/models/request_type_enum.rb
Constant Summary collapse
- VACATION =
"VACATION".freeze
- SICK =
"SICK".freeze
- PERSONAL =
"PERSONAL".freeze
- JURY_DUTY =
"JURY_DUTY".freeze
- VOLUNTEER =
"VOLUNTEER".freeze
- BEREAVEMENT =
"BEREAVEMENT".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.
28 29 30 |
# File 'lib/merge_hris_client/models/request_type_enum.rb', line 28 def raw_value @raw_value end |
#value ⇒ Object
Returns the value of attribute value.
27 28 29 |
# File 'lib/merge_hris_client/models/request_type_enum.rb', line 27 def value @value end |
Class Method Details
.build_from_hash(value) ⇒ Object
44 45 46 |
# File 'lib/merge_hris_client/models/request_type_enum.rb', line 44 def self.build_from_hash(value) RequestTypeEnum.new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/merge_hris_client/models/request_type_enum.rb', line 33 def build_from_hash(value) @raw_value = value if ["VACATION", "SICK", "PERSONAL", "JURY_DUTY", "VOLUNTEER", "BEREAVEMENT", ].include? value @value = value else @value = MERGE_NONSTANDARD_VALUE end self end |