Class: GustoEmbedded::Models::Shared::PayrollDigest

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

Overview

A payroll digest batch request.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, idempotency_key:, batch_action:, status:) ⇒ PayrollDigest

Returns a new instance of PayrollDigest.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/payroll_digest.rb', line 25

def initialize(uuid:, idempotency_key:, batch_action:, status:)
  @uuid = uuid
  @idempotency_key = idempotency_key
  @batch_action = batch_action
  @status = status
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @idempotency_key == other.idempotency_key
  return false unless @batch_action == other.batch_action
  return false unless @status == other.status
  true
end