Class: Kombo::Models::Shared::PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id_type:, candidate_remote_id:, job_remote_id:) ⇒ PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds

Returns a new instance of PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds.



23
24
25
26
27
28
29
30
# File 'lib/kombo/models/shared/postatsimporttrackedapplicationpositiveresponse_smartrecruiters_candidateandjobremoteids.rb', line 23

def initialize(id_type:, candidate_remote_id:, job_remote_id:)
  unless id_type == 'candidate_and_job_remote_ids'
    raise ArgumentError, 'Invalid value for id_type'
  end
  @id_type = 'candidate_and_job_remote_ids'
  @candidate_remote_id = candidate_remote_id
  @job_remote_id = job_remote_id
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/kombo/models/shared/postatsimporttrackedapplicationpositiveresponse_smartrecruiters_candidateandjobremoteids.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id_type == other.id_type
  return false unless @candidate_remote_id == other.candidate_remote_id
  return false unless @job_remote_id == other.job_remote_id
  true
end