Class: GustoEmbedded::Models::Shared::Payrolls

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(payroll_type: nil, display_title: nil, auto_payroll: nil, status: nil, pay_period: nil, payroll_uuid: nil, pay_schedule: nil, totals: nil) ⇒ Payrolls

Returns a new instance of Payrolls.



33
34
35
36
37
38
39
40
41
42
# File 'lib/gusto_embedded/models/shared/payrolls.rb', line 33

def initialize(payroll_type: nil, display_title: nil, auto_payroll: nil, status: nil, pay_period: nil, payroll_uuid: nil, pay_schedule: nil, totals: nil)
  @payroll_type = payroll_type
  @display_title = display_title
  @auto_payroll = auto_payroll
  @status = status
  @pay_period = pay_period
  @payroll_uuid = payroll_uuid
  @pay_schedule = pay_schedule
  @totals = totals
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/gusto_embedded/models/shared/payrolls.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @payroll_type == other.payroll_type
  return false unless @display_title == other.display_title
  return false unless @auto_payroll == other.auto_payroll
  return false unless @status == other.status
  return false unless @pay_period == other.pay_period
  return false unless @payroll_uuid == other.payroll_uuid
  return false unless @pay_schedule == other.pay_schedule
  return false unless @totals == other.totals
  true
end