Class: GustoEmbedded::Models::Shared::EmployeePaymentDetailsList
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeePaymentDetailsList
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_payment_details_list.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(employee_uuid: nil, first_name: nil, last_name: nil, payment_method: nil, split_by: nil, splits: nil) ⇒ EmployeePaymentDetailsList
constructor
A new instance of EmployeePaymentDetailsList.
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, payment_method: nil, split_by: nil, splits: nil) ⇒ EmployeePaymentDetailsList
Returns a new instance of EmployeePaymentDetailsList.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/employee_payment_details_list.rb', line 29 def initialize(employee_uuid: nil, first_name: nil, last_name: nil, payment_method: nil, split_by: nil, splits: nil) @employee_uuid = employee_uuid @first_name = first_name @last_name = last_name @payment_method = payment_method @split_by = split_by @splits = splits end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/employee_payment_details_list.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 @payment_method == other.payment_method return false unless @split_by == other.split_by return false unless @splits == other.splits true end |