Class: GustoEmbedded::Models::Shared::Job
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Job
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/job.rb
Overview
The representation of a job in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version: nil, employee_uuid: nil, hire_date: nil, primary: nil, rate: nil, current_compensation_uuid: nil, two_percent_shareholder: nil, compensations: nil, location_uuid: nil, location: nil, payment_unit: nil, state_wc_covered: nil, state_wc_class_code: nil, title: nil) ⇒ Job
constructor
A new instance of Job.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version: nil, employee_uuid: nil, hire_date: nil, primary: nil, rate: nil, current_compensation_uuid: nil, two_percent_shareholder: nil, compensations: nil, location_uuid: nil, location: nil, payment_unit: nil, state_wc_covered: nil, state_wc_class_code: nil, title: nil) ⇒ Job
Returns a new instance of Job.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/gusto_embedded/models/shared/job.rb', line 47 def initialize(uuid:, version: nil, employee_uuid: nil, hire_date: nil, primary: nil, rate: nil, current_compensation_uuid: nil, two_percent_shareholder: nil, compensations: nil, location_uuid: nil, location: nil, payment_unit: nil, state_wc_covered: nil, state_wc_class_code: nil, title: nil) @uuid = uuid @version = version @employee_uuid = employee_uuid @hire_date = hire_date @primary = primary @rate = rate @current_compensation_uuid = current_compensation_uuid @two_percent_shareholder = two_percent_shareholder @compensations = compensations @location_uuid = location_uuid @location = location @payment_unit = payment_unit @state_wc_covered = state_wc_covered @state_wc_class_code = state_wc_class_code @title = title end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/gusto_embedded/models/shared/job.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @version == other.version return false unless @employee_uuid == other.employee_uuid return false unless @hire_date == other.hire_date return false unless @primary == other.primary return false unless @rate == other.rate return false unless @current_compensation_uuid == other.current_compensation_uuid return false unless @two_percent_shareholder == other.two_percent_shareholder return false unless @compensations == other.compensations return false unless @location_uuid == other.location_uuid return false unless @location == other.location return false unless @payment_unit == other.payment_unit return false unless @state_wc_covered == other.state_wc_covered return false unless @state_wc_class_code == other.state_wc_class_code return false unless @title == other.title true end |