Class: GustoEmbedded::Models::Errors::PeopleBatchConflictErrorMetadata

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(entity_uuid: nil, entity_type: nil) ⇒ PeopleBatchConflictErrorMetadata

Returns a new instance of PeopleBatchConflictErrorMetadata.



21
22
23
24
# File 'lib/gusto_embedded/models/errors/people_batch_conflict_error_metadata.rb', line 21

def initialize(entity_uuid: nil, entity_type: nil)
  @entity_uuid = entity_uuid
  @entity_type = entity_type
end

Instance Method Details

#==(other) ⇒ Object



27
28
29
30
31
32
# File 'lib/gusto_embedded/models/errors/people_batch_conflict_error_metadata.rb', line 27

def ==(other)
  return false unless other.is_a? self.class
  return false unless @entity_uuid == other.entity_uuid
  return false unless @entity_type == other.entity_type
  true
end