Class: GustoEmbedded::Models::Operations::PostV1EmployeesRequestBody
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::PostV1EmployeesRequestBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/post_v1_employees_requestbody.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(first_name:, last_name:, middle_initial: nil, work_email: nil, date_of_birth: nil, ssn: nil, preferred_first_name: nil, self_onboarding: nil, email: nil) ⇒ PostV1EmployeesRequestBody
constructor
A new instance of PostV1EmployeesRequestBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(first_name:, last_name:, middle_initial: nil, work_email: nil, date_of_birth: nil, ssn: nil, preferred_first_name: nil, self_onboarding: nil, email: nil) ⇒ PostV1EmployeesRequestBody
Returns a new instance of PostV1EmployeesRequestBody.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gusto_embedded/models/operations/post_v1_employees_requestbody.rb', line 35 def initialize(first_name:, last_name:, middle_initial: nil, work_email: nil, date_of_birth: nil, ssn: nil, preferred_first_name: nil, self_onboarding: nil, email: nil) @first_name = first_name @last_name = last_name @middle_initial = middle_initial @work_email = work_email @date_of_birth = date_of_birth @ssn = ssn @preferred_first_name = preferred_first_name @self_onboarding = self_onboarding @email = email end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/operations/post_v1_employees_requestbody.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @middle_initial == other.middle_initial return false unless @work_email == other.work_email return false unless @date_of_birth == other.date_of_birth return false unless @ssn == other.ssn return false unless @preferred_first_name == other.preferred_first_name return false unless @self_onboarding == other.self_onboarding return false unless @email == other.email true end |