Class: GustoEmbedded::Models::Shared::I9Authorization
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::I9Authorization
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/i9_authorization.rb
Overview
An employee’s I-9 authorization
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version:, authorization_status:, employer_signed:, employee_signed:, form_uuid: nil, document_type: nil, has_document_number: nil, expiration_date: nil, country: nil, additional_info: nil, alt_procedure: nil) ⇒ I9Authorization
constructor
A new instance of I9Authorization.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version:, authorization_status:, employer_signed:, employee_signed:, form_uuid: nil, document_type: nil, has_document_number: nil, expiration_date: nil, country: nil, additional_info: nil, alt_procedure: nil) ⇒ I9Authorization
Returns a new instance of I9Authorization.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gusto_embedded/models/shared/i9_authorization.rb', line 41 def initialize(uuid:, version:, authorization_status:, employer_signed:, employee_signed:, form_uuid: nil, document_type: nil, has_document_number: nil, expiration_date: nil, country: nil, additional_info: nil, alt_procedure: nil) @uuid = uuid @version = version @authorization_status = @employer_signed = employer_signed @employee_signed = employee_signed @form_uuid = form_uuid @document_type = document_type @has_document_number = has_document_number @expiration_date = expiration_date @country = country @additional_info = additional_info @alt_procedure = alt_procedure end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/gusto_embedded/models/shared/i9_authorization.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @version == other.version return false unless @authorization_status == other. return false unless @employer_signed == other.employer_signed return false unless @employee_signed == other.employee_signed return false unless @form_uuid == other.form_uuid return false unless @document_type == other.document_type return false unless @has_document_number == other.has_document_number return false unless @expiration_date == other.expiration_date return false unless @country == other.country return false unless @additional_info == other.additional_info return false unless @alt_procedure == other.alt_procedure true end |