Module: FinchAPI::Models::HRIS::EmploymentData

Extended by:
Internal::Type::Union
Defined in:
lib/finch_api/models/hris/employment_data.rb

Defined Under Namespace

Classes: BatchError, UnionMember0

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Class Method Details

.variantsArray(FinchAPI::HRIS::EmploymentData::UnionMember0, FinchAPI::HRIS::EmploymentData::BatchError)

Returns:

  • (Array(FinchAPI::HRIS::EmploymentData::UnionMember0, FinchAPI::HRIS::EmploymentData::BatchError))


376
377
378
379
380
# File 'lib/finch_api/models/hris/employment_data.rb', line 376

define_sorbet_constant!(:Variants) do
  T.type_alias do
    T.any(FinchAPI::HRIS::EmploymentData::UnionMember0, FinchAPI::HRIS::EmploymentData::BatchError)
  end
end

Instance Method Details

#initialize(code: , message: , name: , finch_code: nil) ⇒ Object

Parameters:

  • code (Float) (defaults to: )
  • message (String) (defaults to: )
  • name (String) (defaults to: )
  • finch_code (String) (defaults to: nil)


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