Class: MergeHRISClient::PayPeriodEnum

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

Constant Summary collapse

HOUR =
"HOUR".freeze
DAY =
"DAY".freeze
WEEK =
"WEEK".freeze
EVERY_TWO_WEEKS =
"EVERY_TWO_WEEKS".freeze
SEMIMONTHLY =
"SEMIMONTHLY".freeze
MONTH =
"MONTH".freeze
QUARTER =
"QUARTER".freeze
EVERY_SIX_MONTHS =
"EVERY_SIX_MONTHS".freeze
YEAR =
"YEAR".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.



31
32
33
# File 'lib/merge_hris_client/models/pay_period_enum.rb', line 31

def raw_value
  @raw_value
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

.build_from_hash(value) ⇒ Object



47
48
49
# File 'lib/merge_hris_client/models/pay_period_enum.rb', line 47

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



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

def build_from_hash(value)
  @raw_value = value
  if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "SEMIMONTHLY", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
    @value = value
  else
    @value = MERGE_NONSTANDARD_VALUE
  end

  self
end