Class: FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::Employment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/hris/employment_data.rb,
sig/finch_api/models/hris/employment_data.rbs

Overview

See Also:

  • FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody#employment

Defined Under Namespace

Modules: Subtype, Type

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(subtype:, type:) ⇒ Object

Some parameter documentations has been truncated, see FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::Employment for more details.

The employment object.

Parameters:



# File 'lib/finch_api/models/hris/employment_data.rb', line 245

Instance Attribute Details

#subtypeSymbol, ...

The secondary employment type of the individual. Options: full_time, part_time, intern, temp, seasonal and individual_contractor.

Parameters:

  • value (FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::Employment::subtype, nil)

Returns:



229
230
231
232
233
# File 'lib/finch_api/models/hris/employment_data.rb', line 229

required :subtype,
enum: -> {
  FinchAPI::HRIS::EmploymentData::EmploymentDataResponseBody::Employment::Subtype
},
nil?: true

#typeSymbol, ...

The main employment type of the individual.

Parameters:

  • value (FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::Employment::type_, nil)

Returns:



239
240
241
242
243
# File 'lib/finch_api/models/hris/employment_data.rb', line 239

required :type,
enum: -> {
  FinchAPI::HRIS::EmploymentData::EmploymentDataResponseBody::Employment::Type
},
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/finch_api/models/hris/employment_data.rb', line 270

Instance Method Details

#to_hash{

Returns:

  • ({)


153
# File 'sig/finch_api/models/hris/employment_data.rbs', line 153

def to_hash: -> {