Class: GustoEmbedded::Models::Shared::I9AuthorizationDocumentOption
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::I9AuthorizationDocumentOption
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/i9_authorization_document_option.rb
Overview
An employee’s I-9 verification document option based on the authorization status
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(section:, description:, document_type:, document_title:, common_choice:) ⇒ I9AuthorizationDocumentOption
constructor
A new instance of I9AuthorizationDocumentOption.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(section:, description:, document_type:, document_title:, common_choice:) ⇒ I9AuthorizationDocumentOption
Returns a new instance of I9AuthorizationDocumentOption.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/shared/i9_authorization_document_option.rb', line 27 def initialize(section:, description:, document_type:, document_title:, common_choice:) @section = section @description = description @document_type = document_type @document_title = document_title @common_choice = common_choice end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/i9_authorization_document_option.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @section == other.section return false unless @description == other.description return false unless @document_type == other.document_type return false unless @document_title == other.document_title return false unless @common_choice == other.common_choice true end |