Class: StackOne::Models::Shared::Scorecard
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Scorecard
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/scorecard.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(application_id: nil, author_id: nil, candidate_id: nil, created_at: nil, id: nil, interview_id: nil, label: nil, overall_recommendation: nil, remote_application_id: nil, remote_author_id: nil, remote_candidate_id: nil, remote_id: nil, remote_interview_id: nil, sections: nil, updated_at: nil) ⇒ Scorecard
constructor
A new instance of Scorecard.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(application_id: nil, author_id: nil, candidate_id: nil, created_at: nil, id: nil, interview_id: nil, label: nil, overall_recommendation: nil, remote_application_id: nil, remote_author_id: nil, remote_candidate_id: nil, remote_id: nil, remote_interview_id: nil, sections: nil, updated_at: nil) ⇒ Scorecard
Returns a new instance of Scorecard.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/stack_one/models/shared/scorecard.rb', line 47 def initialize(application_id: nil, author_id: nil, candidate_id: nil, created_at: nil, id: nil, interview_id: nil, label: nil, overall_recommendation: nil, remote_application_id: nil, remote_author_id: nil, remote_candidate_id: nil, remote_id: nil, remote_interview_id: nil, sections: nil, updated_at: nil) @application_id = application_id @author_id = @candidate_id = candidate_id @created_at = created_at @id = id @interview_id = interview_id @label = label @overall_recommendation = overall_recommendation @remote_application_id = remote_application_id @remote_author_id = @remote_candidate_id = remote_candidate_id @remote_id = remote_id @remote_interview_id = remote_interview_id @sections = sections @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/stack_one/models/shared/scorecard.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @application_id == other.application_id return false unless @author_id == other. return false unless @candidate_id == other.candidate_id return false unless @created_at == other.created_at return false unless @id == other.id return false unless @interview_id == other.interview_id return false unless @label == other.label return false unless @overall_recommendation == other.overall_recommendation return false unless @remote_application_id == other.remote_application_id return false unless @remote_author_id == other. return false unless @remote_candidate_id == other.remote_candidate_id return false unless @remote_id == other.remote_id return false unless @remote_interview_id == other.remote_interview_id return false unless @sections == other.sections return false unless @updated_at == other.updated_at true end |