Class: GustoEmbedded::Models::Shared::PayScheduleAssignmentEmployeeChange
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayScheduleAssignmentEmployeeChange
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/pay_schedule_assignment_employee_change.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(employee_uuid: nil, first_name: nil, last_name: nil, pay_frequency: nil, first_pay_period: nil, transition_pay_period: nil) ⇒ PayScheduleAssignmentEmployeeChange
constructor
A new instance of PayScheduleAssignmentEmployeeChange.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(employee_uuid: nil, first_name: nil, last_name: nil, pay_frequency: nil, first_pay_period: nil, transition_pay_period: nil) ⇒ PayScheduleAssignmentEmployeeChange
Returns a new instance of PayScheduleAssignmentEmployeeChange.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/pay_schedule_assignment_employee_change.rb', line 29 def initialize(employee_uuid: nil, first_name: nil, last_name: nil, pay_frequency: nil, first_pay_period: nil, transition_pay_period: nil) @employee_uuid = employee_uuid @first_name = first_name @last_name = last_name @pay_frequency = pay_frequency @first_pay_period = first_pay_period @transition_pay_period = transition_pay_period end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/pay_schedule_assignment_employee_change.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @employee_uuid == other.employee_uuid return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @pay_frequency == other.pay_frequency return false unless @first_pay_period == other.first_pay_period return false unless @transition_pay_period == other.transition_pay_period true end |