Class: Kombo::Models::Shared::PostAtsCandidatesRequestBodyScreeningQuestionAnswer
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::PostAtsCandidatesRequestBodyScreeningQuestionAnswer
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/postatscandidatesrequestbody_screening_question_answer.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(question_id:, answer:) ⇒ PostAtsCandidatesRequestBodyScreeningQuestionAnswer
constructor
A new instance of PostAtsCandidatesRequestBodyScreeningQuestionAnswer.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(question_id:, answer:) ⇒ PostAtsCandidatesRequestBodyScreeningQuestionAnswer
Returns a new instance of PostAtsCandidatesRequestBodyScreeningQuestionAnswer.
35 36 37 38 |
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_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/postatscandidatesrequestbody_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 |