Class: StackOne::Models::Shared::Candidate

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(application_ids: nil, company: nil, country: nil, created_at: nil, custom_fields: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_application_ids: nil, remote_id: nil, social_links: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil) ⇒ Candidate

Returns a new instance of Candidate.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/stack_one/models/shared/candidate.rb', line 61

def initialize(application_ids: nil, company: nil, country: nil, created_at: nil, custom_fields: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_application_ids: nil, remote_id: nil, social_links: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
  @application_ids = application_ids
  @company = company
  @country = country
  @created_at = created_at
  @custom_fields = custom_fields
  @email = email
  @emails = emails
  @first_name = first_name
  @hired_at = hired_at
  @id = id
  @last_name = last_name
  @name = name
  @phone = phone
  @phone_numbers = phone_numbers
  @remote_application_ids = remote_application_ids
  @remote_id = remote_id
  @social_links = social_links
  @tags = tags
  @title = title
  @unified_custom_fields = unified_custom_fields
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/stack_one/models/shared/candidate.rb', line 86

def ==(other)
  return false unless other.is_a? self.class
  return false unless @application_ids == other.application_ids
  return false unless @company == other.company
  return false unless @country == other.country
  return false unless @created_at == other.created_at
  return false unless @custom_fields == other.custom_fields
  return false unless @email == other.email
  return false unless @emails == other.emails
  return false unless @first_name == other.first_name
  return false unless @hired_at == other.hired_at
  return false unless @id == other.id
  return false unless @last_name == other.last_name
  return false unless @name == other.name
  return false unless @phone == other.phone
  return false unless @phone_numbers == other.phone_numbers
  return false unless @remote_application_ids == other.remote_application_ids
  return false unless @remote_id == other.remote_id
  return false unless @social_links == other.social_links
  return false unless @tags == other.tags
  return false unless @title == other.title
  return false unless @unified_custom_fields == other.unified_custom_fields
  return false unless @updated_at == other.updated_at
  true
end