Class: StackOne::Models::Shared::ApplicationCandidate

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company: nil, email: nil, emails: nil, first_name: nil, last_name: nil, name: nil, phone_numbers: nil, social_links: nil, title: nil) ⇒ ApplicationCandidate

Returns a new instance of ApplicationCandidate.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/stack_one/models/shared/application_candidate.rb', line 35

def initialize(company: nil, email: nil, emails: nil, first_name: nil, last_name: nil, name: nil, phone_numbers: nil, social_links: nil, title: nil)
  @company = company
  @email = email
  @emails = emails
  @first_name = first_name
  @last_name = last_name
  @name = name
  @phone_numbers = phone_numbers
  @social_links = social_links
  @title = title
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/stack_one/models/shared/application_candidate.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company == other.company
  return false unless @email == other.email
  return false unless @emails == other.emails
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @name == other.name
  return false unless @phone_numbers == other.phone_numbers
  return false unless @social_links == other.social_links
  return false unless @title == other.title
  true
end