Class: StackOne::Models::Shared::Employment
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Employment
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/employment.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, fte: nil, grade: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, payroll_code: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, type: nil, unified_custom_fields: nil, updated_at: nil, work_time: nil) ⇒ Employment
constructor
A new instance of Employment.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, fte: nil, grade: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, payroll_code: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, type: nil, unified_custom_fields: nil, updated_at: nil, work_time: nil) ⇒ Employment
Returns a new instance of Employment.
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 113 114 115 116 |
# File 'lib/stack_one/models/shared/employment.rb', line 85 def initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, fte: nil, grade: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, payroll_code: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, type: nil, unified_custom_fields: nil, updated_at: nil, work_time: nil) @active = active @contract_type = contract_type @cost_center = cost_center @cost_centers = cost_centers @created_at = created_at @department = department @division = division @effective_date = effective_date @employee_id = employee_id @employment_contract_type = employment_contract_type @employment_type = employment_type @end_date = end_date @fte = fte @grade = grade @id = id @job = job @job_title = job_title @manager = manager @pay_currency = pay_currency @pay_frequency = pay_frequency @pay_period = pay_period @pay_rate = pay_rate @payroll_code = payroll_code @remote_employee_id = remote_employee_id @remote_id = remote_id @start_date = start_date @type = type @unified_custom_fields = unified_custom_fields @updated_at = updated_at @work_time = work_time end |
Instance Method Details
#==(other) ⇒ Object
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 150 151 152 |
# File 'lib/stack_one/models/shared/employment.rb', line 119 def ==(other) return false unless other.is_a? self.class return false unless @active == other.active return false unless @contract_type == other.contract_type return false unless @cost_center == other.cost_center return false unless @cost_centers == other.cost_centers return false unless @created_at == other.created_at return false unless @department == other.department return false unless @division == other.division return false unless @effective_date == other.effective_date return false unless @employee_id == other.employee_id return false unless @employment_contract_type == other.employment_contract_type return false unless @employment_type == other.employment_type return false unless @end_date == other.end_date return false unless @fte == other.fte return false unless @grade == other.grade return false unless @id == other.id return false unless @job == other.job return false unless @job_title == other.job_title return false unless @manager == other.manager return false unless @pay_currency == other.pay_currency return false unless @pay_frequency == other.pay_frequency return false unless @pay_period == other.pay_period return false unless @pay_rate == other.pay_rate return false unless @payroll_code == other.payroll_code return false unless @remote_employee_id == other.remote_employee_id return false unless @remote_id == other.remote_id return false unless @start_date == other.start_date return false unless @type == other.type return false unless @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at return false unless @work_time == other.work_time true end |