Class: GustoEmbedded::Models::Shared::I9AuthorizationDocument

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

Overview

An employee’s I-9 verification document

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, document_type:, document_title:, issuing_authority:, expiration_date: nil) ⇒ I9AuthorizationDocument

Returns a new instance of I9AuthorizationDocument.



27
28
29
30
31
32
33
# File 'lib/gusto_embedded/models/shared/i9_authorization_document.rb', line 27

def initialize(uuid:, document_type:, document_title:, issuing_authority:, expiration_date: nil)
  @uuid = uuid
  @document_type = document_type
  @document_title = document_title
  @issuing_authority = issuing_authority
  @expiration_date = expiration_date
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/gusto_embedded/models/shared/i9_authorization_document.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @document_type == other.document_type
  return false unless @document_title == other.document_title
  return false unless @issuing_authority == other.issuing_authority
  return false unless @expiration_date == other.expiration_date
  true
end