Class: Kombo::Models::Shared::PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(question_id:, answer:) ⇒ PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer

Returns a new instance of PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer.



35
36
37
38
# File 'lib/kombo/models/shared/postatsjobsjobidapplicationsrequestbody_screening_question_answer.rb', line 35

def initialize(question_id:, answer:)
  @question_id = question_id
  @answer = answer
end

Instance Method Details

#==(other) ⇒ Object



41
42
43
44
45
46
# File 'lib/kombo/models/shared/postatsjobsjobidapplicationsrequestbody_screening_question_answer.rb', line 41

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