Class: GustoEmbedded::Models::Shared::PayrollCheck

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(payroll_uuid: nil, printing_format: nil, request_uuid: nil, status: nil, employee_check_number_mapping: nil, starting_check_number: nil) ⇒ PayrollCheck

Returns a new instance of PayrollCheck.



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

def initialize(payroll_uuid: nil, printing_format: nil, request_uuid: nil, status: nil, employee_check_number_mapping: nil, starting_check_number: nil)
  @payroll_uuid = payroll_uuid
  @printing_format = printing_format
  @request_uuid = request_uuid
  @status = status
  @employee_check_number_mapping = employee_check_number_mapping
  @starting_check_number = starting_check_number
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @payroll_uuid == other.payroll_uuid
  return false unless @printing_format == other.printing_format
  return false unless @request_uuid == other.request_uuid
  return false unless @status == other.status
  return false unless @employee_check_number_mapping == other.employee_check_number_mapping
  return false unless @starting_check_number == other.starting_check_number
  true
end