Class: Kombo::Models::Shared::PostAtsJobsJobIdApplicationsRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(candidate:, stage_id: nil, attachments: nil, source: nil, sourced_by: nil, gdpr_consent: nil, remote_fields: nil, screening_question_answers: nil) ⇒ PostAtsJobsJobIdApplicationsRequestBody

Returns a new instance of PostAtsJobsJobIdApplicationsRequestBody.



43
44
45
46
47
48
49
50
51
52
# File 'lib/kombo/models/shared/postatsjobsjobidapplicationsrequestbody.rb', line 43

def initialize(candidate:, stage_id: nil, attachments: nil, source: nil, sourced_by: nil, gdpr_consent: nil, remote_fields: nil, screening_question_answers: nil)
  @candidate = candidate
  @stage_id = stage_id
  @attachments = attachments
  @source = source
  @sourced_by = sourced_by
  @gdpr_consent = gdpr_consent
  @remote_fields = remote_fields
  @screening_question_answers = screening_question_answers
end

Instance Method Details

#==(other) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/kombo/models/shared/postatsjobsjobidapplicationsrequestbody.rb', line 55

def ==(other)
  return false unless other.is_a? self.class
  return false unless @candidate == other.candidate
  return false unless @stage_id == other.stage_id
  return false unless @attachments == other.attachments
  return false unless @source == other.source
  return false unless @sourced_by == other.sourced_by
  return false unless @gdpr_consent == other.gdpr_consent
  return false unless @remote_fields == other.remote_fields
  return false unless @screening_question_answers == other.screening_question_answers
  true
end