Class: GustoEmbedded::Models::Shared::ExternalPayrollBasic

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

Overview

The representation of an external payroll with minimal information.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, company_uuid: nil, check_date: nil, payment_period_start_date: nil, payment_period_end_date: nil, status: nil) ⇒ ExternalPayrollBasic

Returns a new instance of ExternalPayrollBasic.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/external_payroll_basic.rb', line 29

def initialize(uuid:, company_uuid: nil, check_date: nil, payment_period_start_date: nil, payment_period_end_date: nil, status: nil)
  @uuid = uuid
  @company_uuid = company_uuid
  @check_date = check_date
  @payment_period_start_date = payment_period_start_date
  @payment_period_end_date = payment_period_end_date
  @status = status
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/external_payroll_basic.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @company_uuid == other.company_uuid
  return false unless @check_date == other.check_date
  return false unless @payment_period_start_date == other.payment_period_start_date
  return false unless @payment_period_end_date == other.payment_period_end_date
  return false unless @status == other.status
  true
end