Class: GustoEmbedded::Models::Shared::I9AuthorizationRequestBody
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::I9AuthorizationRequestBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/i9_authorization_request_body.rb
Overview
Request body for creating or updating an employee’s I-9 authorization.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(authorization_status:, version: nil, document_type: nil, document_number: nil, country: nil, expiration_date: nil) ⇒ I9AuthorizationRequestBody
constructor
A new instance of I9AuthorizationRequestBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(authorization_status:, version: nil, document_type: nil, document_number: nil, country: nil, expiration_date: nil) ⇒ I9AuthorizationRequestBody
Returns a new instance of I9AuthorizationRequestBody.
50 51 52 53 54 55 56 57 |
# File 'lib/gusto_embedded/models/shared/i9_authorization_request_body.rb', line 50 def initialize(authorization_status:, version: nil, document_type: nil, document_number: nil, country: nil, expiration_date: nil) @authorization_status = @version = version @document_type = document_type @document_number = document_number @country = country @expiration_date = expiration_date end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/gusto_embedded/models/shared/i9_authorization_request_body.rb', line 60 def ==(other) return false unless other.is_a? self.class return false unless @authorization_status == other. return false unless @version == other.version return false unless @document_type == other.document_type return false unless @document_number == other.document_number return false unless @country == other.country return false unless @expiration_date == other.expiration_date true end |