Class: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/person_enrich_response.rb,
sig/context_dev/models/person_enrich_response.rbs

Defined Under Namespace

Classes: EndDate, Institution, StartDate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(year:, day: nil, month: nil) ⇒ Object

Parameters:

  • year (Integer)
  • day (Integer) (defaults to: nil)
  • month (Integer) (defaults to: nil)


138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/context_dev/models/person_enrich_response.rb', line 138

class Education < ContextDev::Internal::Type::BaseModel
  # @!attribute institution
  #
  #   @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution]
  required :institution,
           -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution }

  # @!attribute degree
  #
  #   @return [String, nil]
  optional :degree, String

  # @!attribute description
  #
  #   @return [String, nil]
  optional :description, String

  # @!attribute end_date
  #
  #   @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate, nil]
  optional :end_date,
           -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate }

  # @!attribute field_of_study
  #
  #   @return [String, nil]
  optional :field_of_study, String

  # @!attribute start_date
  #
  #   @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate, nil]
  optional :start_date,
           -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate }

  # @!method initialize(institution:, degree: nil, description: nil, end_date: nil, field_of_study: nil, start_date: nil)
  #   @param institution [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution]
  #   @param degree [String]
  #   @param description [String]
  #   @param end_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate]
  #   @param field_of_study [String]
  #   @param start_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate]

  # @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education#institution
  class Institution < ContextDev::Internal::Type::BaseModel
    # @!attribute name
    #
    #   @return [String]
    required :name, String

    # @!attribute domain
    #
    #   @return [String, nil]
    optional :domain, String

    # @!method initialize(name:, domain: nil)
    #   @param name [String]
    #   @param domain [String]
  end

  # @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education#end_date
  class EndDate < ContextDev::Internal::Type::BaseModel
    # @!attribute year
    #
    #   @return [Integer]
    required :year, Integer

    # @!attribute day
    #
    #   @return [Integer, nil]
    optional :day, Integer

    # @!attribute month
    #
    #   @return [Integer, nil]
    optional :month, Integer

    # @!method initialize(year:, day: nil, month: nil)
    #   @param year [Integer]
    #   @param day [Integer]
    #   @param month [Integer]
  end

  # @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education#start_date
  class StartDate < ContextDev::Internal::Type::BaseModel
    # @!attribute year
    #
    #   @return [Integer]
    required :year, Integer

    # @!attribute day
    #
    #   @return [Integer, nil]
    optional :day, Integer

    # @!attribute month
    #
    #   @return [Integer, nil]
    optional :month, Integer

    # @!method initialize(year:, day: nil, month: nil)
    #   @param year [Integer]
    #   @param day [Integer]
    #   @param month [Integer]
  end
end

Instance Attribute Details

#degreeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


148
# File 'lib/context_dev/models/person_enrich_response.rb', line 148

optional :degree, String

#descriptionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


153
# File 'lib/context_dev/models/person_enrich_response.rb', line 153

optional :description, String

#end_dateContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate?



158
159
# File 'lib/context_dev/models/person_enrich_response.rb', line 158

optional :end_date,
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate }

#field_of_studyString?

Parameters:

  • (String)

Returns:

  • (String, nil)


164
# File 'lib/context_dev/models/person_enrich_response.rb', line 164

optional :field_of_study, String

#institutionContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution



142
143
# File 'lib/context_dev/models/person_enrich_response.rb', line 142

required :institution,
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution }

#start_dateContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate?



169
170
# File 'lib/context_dev/models/person_enrich_response.rb', line 169

optional :start_date,
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate }

Instance Method Details

#to_hash{

Returns:

  • ({)


191
# File 'sig/context_dev/models/person_enrich_response.rbs', line 191

def to_hash: -> {