Class: GustoEmbedded::Models::Shared::PeopleBatchResultsErrors

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(error_key: nil, category: nil, message: nil, errors: nil) ⇒ PeopleBatchResultsErrors

Returns a new instance of PeopleBatchResultsErrors.



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

def initialize(error_key: nil, category: nil, message: nil, errors: nil)
  @error_key = error_key
  @category = category
  @message = message
  @errors = errors
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @error_key == other.error_key
  return false unless @category == other.category
  return false unless @message == other.message
  return false unless @errors == other.errors
  true
end