Class: GustoEmbedded::Models::Shared::Contractor
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Contractor
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor.rb
Overview
The representation of a contractor (individual or business) in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, company_uuid: nil, wage_type: nil, version: nil, type: nil, start_date: nil, hourly_rate: nil, onboarded: nil, onboarding_status: nil, has_ssn: nil, dismissal_cancellation_eligible: nil, rehire_cancellation_eligible: nil, is_active: true, first_name: nil, last_name: nil, middle_initial: nil, business_name: nil, ein: nil, has_ein: nil, email: nil, address: nil, file_new_hire_report: nil, work_state: nil, payment_method: nil, department_uuid: nil, department: nil, department_title: nil, dismissal_date: nil, upcoming_employment: nil, member_portal_invitation_status: nil, partner_portal_invitation_sent: nil) ⇒ Contractor
constructor
A new instance of Contractor.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, company_uuid: nil, wage_type: nil, version: nil, type: nil, start_date: nil, hourly_rate: nil, onboarded: nil, onboarding_status: nil, has_ssn: nil, dismissal_cancellation_eligible: nil, rehire_cancellation_eligible: nil, is_active: true, first_name: nil, last_name: nil, middle_initial: nil, business_name: nil, ein: nil, has_ein: nil, email: nil, address: nil, file_new_hire_report: nil, work_state: nil, payment_method: nil, department_uuid: nil, department: nil, department_title: nil, dismissal_date: nil, upcoming_employment: nil, member_portal_invitation_status: nil, partner_portal_invitation_sent: nil) ⇒ Contractor
Returns a new instance of Contractor.
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/gusto_embedded/models/shared/contractor.rb', line 80 def initialize(uuid:, company_uuid: nil, wage_type: nil, version: nil, type: nil, start_date: nil, hourly_rate: nil, onboarded: nil, onboarding_status: nil, has_ssn: nil, dismissal_cancellation_eligible: nil, rehire_cancellation_eligible: nil, is_active: true, first_name: nil, last_name: nil, middle_initial: nil, business_name: nil, ein: nil, has_ein: nil, email: nil, address: nil, file_new_hire_report: nil, work_state: nil, payment_method: nil, department_uuid: nil, department: nil, department_title: nil, dismissal_date: nil, upcoming_employment: nil, member_portal_invitation_status: nil, partner_portal_invitation_sent: nil) @uuid = uuid @company_uuid = company_uuid @wage_type = wage_type @version = version @type = type @start_date = start_date @hourly_rate = hourly_rate @onboarded = onboarded @onboarding_status = onboarding_status @has_ssn = has_ssn @dismissal_cancellation_eligible = dismissal_cancellation_eligible @rehire_cancellation_eligible = rehire_cancellation_eligible @is_active = is_active @first_name = first_name @last_name = last_name @middle_initial = middle_initial @business_name = business_name @ein = ein @has_ein = has_ein @email = email @address = address @file_new_hire_report = file_new_hire_report @work_state = work_state @payment_method = payment_method @department_uuid = department_uuid @department = department @department_title = department_title @dismissal_date = dismissal_date @upcoming_employment = upcoming_employment @member_portal_invitation_status = member_portal_invitation_status @partner_portal_invitation_sent = partner_portal_invitation_sent end |
Instance Method Details
#==(other) ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/gusto_embedded/models/shared/contractor.rb', line 115 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @company_uuid == other.company_uuid return false unless @wage_type == other.wage_type return false unless @version == other.version return false unless @type == other.type return false unless @start_date == other.start_date return false unless @hourly_rate == other.hourly_rate return false unless @onboarded == other.onboarded return false unless @onboarding_status == other.onboarding_status return false unless @has_ssn == other.has_ssn return false unless @dismissal_cancellation_eligible == other.dismissal_cancellation_eligible return false unless @rehire_cancellation_eligible == other.rehire_cancellation_eligible return false unless @is_active == other.is_active 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 @business_name == other.business_name return false unless @ein == other.ein return false unless @has_ein == other.has_ein return false unless @email == other.email return false unless @address == other.address return false unless @file_new_hire_report == other.file_new_hire_report return false unless @work_state == other.work_state return false unless @payment_method == other.payment_method return false unless @department_uuid == other.department_uuid return false unless @department == other.department return false unless @department_title == other.department_title return false unless @dismissal_date == other.dismissal_date return false unless @upcoming_employment == other.upcoming_employment return false unless @member_portal_invitation_status == other.member_portal_invitation_status return false unless @partner_portal_invitation_sent == other.partner_portal_invitation_sent true end |