Class: ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates

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

Overview

See Also:

  • ContextDev::Models::BatchSubmitResponse::Person::Experience#dates

Defined Under Namespace

Classes: EndDate, 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

End date, when known.

Parameters:

  • year (Integer)

    Year value.

  • day (Integer) (defaults to: nil)

    Day value, when known.

  • month (Integer) (defaults to: nil)

    Month value, when known.



# File 'lib/context_dev/models/batch_submit_response.rb', line 433

Instance Attribute Details

#end_dateContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate?

End date, when known.



415
416
417
# File 'lib/context_dev/models/batch_submit_response.rb', line 415

optional :end_date,
-> { ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate },
api_name: :endDate

#is_currentBoolean?

Whether the entry is current.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


423
# File 'lib/context_dev/models/batch_submit_response.rb', line 423

optional :is_current, ContextDev::Internal::Type::Boolean, api_name: :isCurrent

#start_dateContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate?

Start date, when known.



429
430
431
# File 'lib/context_dev/models/batch_submit_response.rb', line 429

optional :start_date,
-> { ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate },
api_name: :startDate

Instance Method Details

#to_hash{

Returns:

  • ({)


386
# File 'sig/context_dev/models/batch_submit_response.rbs', line 386

def to_hash: -> {