Class: Kombo::Models::Shared::PostAtsCandidatesRequestBodyExperienceDatum

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company_name:, title:, start_date:, location: nil, end_date: nil, currently_work_here: nil, description: nil) ⇒ PostAtsCandidatesRequestBodyExperienceDatum

Returns a new instance of PostAtsCandidatesRequestBodyExperienceDatum.



33
34
35
36
37
38
39
40
41
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_experience_datum.rb', line 33

def initialize(company_name:, title:, start_date:, location: nil, end_date: nil, currently_work_here: nil, description: nil)
  @company_name = company_name
  @title = title
  @start_date = start_date
  @location = location
  @end_date = end_date
  @currently_work_here = currently_work_here
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_experience_datum.rb', line 44

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_name == other.company_name
  return false unless @title == other.title
  return false unless @start_date == other.start_date
  return false unless @location == other.location
  return false unless @end_date == other.end_date
  return false unless @currently_work_here == other.currently_work_here
  return false unless @description == other.description
  true
end