Class: GustoEmbedded::Models::Shared::EmployeePayStubsList

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/employee_pay_stubs_list.rb

Overview

The representation of an employee pay stub information.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(uuid:, check_date: nil, gross_pay: nil, net_pay: nil, payroll_uuid: nil, check_amount: nil, payment_method: nil) ⇒ EmployeePayStubsList

Returns a new instance of EmployeePayStubsList.



31
32
33
34
35
36
37
38
39
# File 'lib/gusto_embedded/models/shared/employee_pay_stubs_list.rb', line 31

def initialize(uuid:, check_date: nil, gross_pay: nil, net_pay: nil, payroll_uuid: nil, check_amount: nil, payment_method: nil)
  @uuid = uuid
  @check_date = check_date
  @gross_pay = gross_pay
  @net_pay = net_pay
  @payroll_uuid = payroll_uuid
  @check_amount = check_amount
  @payment_method = payment_method
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/gusto_embedded/models/shared/employee_pay_stubs_list.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @check_date == other.check_date
  return false unless @gross_pay == other.gross_pay
  return false unless @net_pay == other.net_pay
  return false unless @payroll_uuid == other.payroll_uuid
  return false unless @check_amount == other.check_amount
  return false unless @payment_method == other.payment_method
  true
end