Class: Kombo::Models::Shared::PostAtsCandidatesRequestBodyEducationDatum

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(school_name: nil, first_year_attended: nil, last_year_attended: nil, field_of_study_reference: nil, degree_reference: nil, grade_average: nil) ⇒ PostAtsCandidatesRequestBodyEducationDatum

Returns a new instance of PostAtsCandidatesRequestBodyEducationDatum.



29
30
31
32
33
34
35
36
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_education_datum.rb', line 29

def initialize(school_name: nil, first_year_attended: nil, last_year_attended: nil, field_of_study_reference: nil, degree_reference: nil, grade_average: nil)
  @school_name = school_name
  @first_year_attended = first_year_attended
  @last_year_attended = last_year_attended
  @field_of_study_reference = field_of_study_reference
  @degree_reference = degree_reference
  @grade_average = grade_average
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_education_datum.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @school_name == other.school_name
  return false unless @first_year_attended == other.first_year_attended
  return false unless @last_year_attended == other.last_year_attended
  return false unless @field_of_study_reference == other.field_of_study_reference
  return false unless @degree_reference == other.degree_reference
  return false unless @grade_average == other.grade_average
  true
end