Class: GustoEmbedded::Models::Shared::ShowEmployees

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/show_employees.rb

Overview

The representation of an employee in Gusto.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(uuid:, first_name:, last_name:, company_uuid: nil, version: nil, terminated: nil, onboarded: nil, onboarding_documents_config: nil, jobs: nil, eligible_paid_time_off: nil, terminations: nil, garnishments: nil, custom_fields: nil, has_ssn: nil, ssn: nil, historical: nil, employee_code: nil, title: nil, hired_at: nil, hidden_ssn: nil, flsa_status: nil, applicable_tax_ids: nil, current_home_address: nil, all_home_addresses: nil, additional_properties: nil, middle_initial: nil, email: nil, manager_uuid: nil, department: nil, two_percent_shareholder: nil, work_email: nil, onboarding_status: nil, date_of_birth: nil, phone: nil, preferred_first_name: nil, payment_method: Models::Shared::PaymentMethod::CHECK, current_employment_status: nil, department_uuid: nil, member_portal_invitation_status: nil, partner_portal_invitation_sent: nil) ⇒ ShowEmployees

Returns a new instance of ShowEmployees.



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/gusto_embedded/models/shared/show_employees.rb', line 97

def initialize(uuid:, first_name:, last_name:, company_uuid: nil, version: nil, terminated: nil, onboarded: nil, onboarding_documents_config: nil, jobs: nil, eligible_paid_time_off: nil, terminations: nil, garnishments: nil, custom_fields: nil, has_ssn: nil, ssn: nil, historical: nil, employee_code: nil, title: nil, hired_at: nil, hidden_ssn: nil, flsa_status: nil, applicable_tax_ids: nil, current_home_address: nil, all_home_addresses: nil, additional_properties: nil, middle_initial: nil, email: nil, manager_uuid: nil, department: nil, two_percent_shareholder: nil, work_email: nil, onboarding_status: nil, date_of_birth: nil, phone: nil, preferred_first_name: nil, payment_method: Models::Shared::PaymentMethod::CHECK, current_employment_status: nil, department_uuid: nil, member_portal_invitation_status: nil, partner_portal_invitation_sent: nil)
  @uuid = uuid
  @first_name = first_name
  @last_name = last_name
  @company_uuid = company_uuid
  @version = version
  @terminated = terminated
  @onboarded = onboarded
  @onboarding_documents_config = onboarding_documents_config
  @jobs = jobs
  @eligible_paid_time_off = eligible_paid_time_off
  @terminations = terminations
  @garnishments = garnishments
  @custom_fields = custom_fields
  @has_ssn = has_ssn
  @ssn = ssn
  @historical = historical
  @employee_code = employee_code
  @title = title
  @hired_at = hired_at
  @hidden_ssn = hidden_ssn
  @flsa_status = flsa_status
  @applicable_tax_ids = applicable_tax_ids
  @current_home_address = current_home_address
  @all_home_addresses = all_home_addresses
  @additional_properties = additional_properties
  @middle_initial = middle_initial
  @email = email
  @manager_uuid = manager_uuid
  @department = department
  @two_percent_shareholder = two_percent_shareholder
  @work_email = work_email
  @onboarding_status = onboarding_status
  @date_of_birth = date_of_birth
  @phone = phone
  @preferred_first_name = preferred_first_name
  @payment_method = payment_method
  @current_employment_status = current_employment_status
  @department_uuid = department_uuid
  @member_portal_invitation_status = member_portal_invitation_status
  @partner_portal_invitation_sent = partner_portal_invitation_sent
end

Instance Method Details

#==(other) ⇒ Object



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/gusto_embedded/models/shared/show_employees.rb', line 141

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @company_uuid == other.company_uuid
  return false unless @version == other.version
  return false unless @terminated == other.terminated
  return false unless @onboarded == other.onboarded
  return false unless @onboarding_documents_config == other.onboarding_documents_config
  return false unless @jobs == other.jobs
  return false unless @eligible_paid_time_off == other.eligible_paid_time_off
  return false unless @terminations == other.terminations
  return false unless @garnishments == other.garnishments
  return false unless @custom_fields == other.custom_fields
  return false unless @has_ssn == other.has_ssn
  return false unless @ssn == other.ssn
  return false unless @historical == other.historical
  return false unless @employee_code == other.employee_code
  return false unless @title == other.title
  return false unless @hired_at == other.hired_at
  return false unless @hidden_ssn == other.hidden_ssn
  return false unless @flsa_status == other.flsa_status
  return false unless @applicable_tax_ids == other.applicable_tax_ids
  return false unless @current_home_address == other.current_home_address
  return false unless @all_home_addresses == other.all_home_addresses
  return false unless @additional_properties == other.additional_properties
  return false unless @middle_initial == other.middle_initial
  return false unless @email == other.email
  return false unless @manager_uuid == other.manager_uuid
  return false unless @department == other.department
  return false unless @two_percent_shareholder == other.two_percent_shareholder
  return false unless @work_email == other.work_email
  return false unless @onboarding_status == other.onboarding_status
  return false unless @date_of_birth == other.date_of_birth
  return false unless @phone == other.phone
  return false unless @preferred_first_name == other.preferred_first_name
  return false unless @payment_method == other.payment_method
  return false unless @current_employment_status == other.current_employment_status
  return false unless @department_uuid == other.department_uuid
  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