Class: GustoEmbedded::Models::Shared::I9AuthorizationEmployerSignRequestBody

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

Overview

Request body for employer signing an employee’s Form I-9.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(signature_text:, signer_title:, agree:, signed_by_ip_address: nil, additional_info: nil, alt_procedure: nil) ⇒ I9AuthorizationEmployerSignRequestBody

Returns a new instance of I9AuthorizationEmployerSignRequestBody.



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

def initialize(signature_text:, signer_title:, agree:, signed_by_ip_address: nil, additional_info: nil, alt_procedure: nil)
  @signature_text = signature_text
  @signer_title = signer_title
  @agree = agree
  @signed_by_ip_address = signed_by_ip_address
  @additional_info = additional_info
  @alt_procedure = alt_procedure
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/i9_authorization_employer_sign_request_body.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @signature_text == other.signature_text
  return false unless @signer_title == other.signer_title
  return false unless @agree == other.agree
  return false unless @signed_by_ip_address == other.signed_by_ip_address
  return false unless @additional_info == other.additional_info
  return false unless @alt_procedure == other.alt_procedure
  true
end