Class: GustoEmbedded::Models::Shared::EmployeeOnboardingDocument

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/employee_onboarding_document.rb

Overview

Configuration for which onboarding documents (e.g. Form I-9) are required for an employee during onboarding.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(i9_document: nil, uuid: nil) ⇒ EmployeeOnboardingDocument

Returns a new instance of EmployeeOnboardingDocument.



23
24
25
26
# File 'lib/gusto_embedded/models/shared/employee_onboarding_document.rb', line 23

def initialize(i9_document: nil, uuid: nil)
  @i9_document = i9_document
  @uuid = uuid
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
32
33
34
# File 'lib/gusto_embedded/models/shared/employee_onboarding_document.rb', line 29

def ==(other)
  return false unless other.is_a? self.class
  return false unless @i9_document == other.i9_document
  return false unless @uuid == other.uuid
  true
end