Class: GustoEmbedded::Models::Shared::Termination
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Termination
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/termination.rb
Overview
The representation of a termination in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version: nil, employee_uuid: nil, active: nil, cancelable: nil, effective_date: nil, run_termination_payroll: nil) ⇒ Termination
constructor
A new instance of Termination.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version: nil, employee_uuid: nil, active: nil, cancelable: nil, effective_date: nil, run_termination_payroll: nil) ⇒ Termination
Returns a new instance of Termination.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/termination.rb', line 31 def initialize(uuid:, version: nil, employee_uuid: nil, active: nil, cancelable: nil, effective_date: nil, run_termination_payroll: nil) @uuid = uuid @version = version @employee_uuid = employee_uuid @active = active @cancelable = cancelable @effective_date = effective_date @run_termination_payroll = run_termination_payroll end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/shared/termination.rb', line 42 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 @active == other.active return false unless @cancelable == other.cancelable return false unless @effective_date == other.effective_date return false unless @run_termination_payroll == other.run_termination_payroll true end |