Class: MergeHRISClient::RunTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/merge_hris_client/models/run_type_enum.rb

Constant Summary collapse

REGULAR =
"REGULAR".freeze
OFF_CYCLE =
"OFF_CYCLE".freeze
CORRECTION =
"CORRECTION".freeze
TERMINATION =
"TERMINATION".freeze
SIGN_ON_BONUS =
"SIGN_ON_BONUS".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.



27
28
29
# File 'lib/merge_hris_client/models/run_type_enum.rb', line 27

def raw_value
  @raw_value
end

#valueObject

Returns the value of attribute value.



26
27
28
# File 'lib/merge_hris_client/models/run_type_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/run_type_enum.rb', line 43

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



32
33
34
35
36
37
38
39
40
41
# File 'lib/merge_hris_client/models/run_type_enum.rb', line 32

def build_from_hash(value)
  @raw_value = value
  if ["REGULAR", "OFF_CYCLE", "CORRECTION", "TERMINATION", "SIGN_ON_BONUS", ].include? value
    @value = value
  else
    @value = MERGE_NONSTANDARD_VALUE
  end

  self
end