Class: StackOne::Models::Shared::Contact

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(account_ids: nil, company_name: nil, created_at: nil, custom_fields: nil, deal_ids: nil, emails: nil, first_name: nil, id: nil, last_name: nil, phone_numbers: nil, remote_account_ids: nil, remote_deal_ids: nil, remote_id: nil, unified_custom_fields: nil, updated_at: nil) ⇒ Contact

Returns a new instance of Contact.



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

def initialize(account_ids: nil, company_name: nil, created_at: nil, custom_fields: nil, deal_ids: nil, emails: nil, first_name: nil, id: nil, last_name: nil, phone_numbers: nil, remote_account_ids: nil, remote_deal_ids: nil, remote_id: nil, unified_custom_fields: nil, updated_at: nil)
  @account_ids = 
  @company_name = company_name
  @created_at = created_at
  @custom_fields = custom_fields
  @deal_ids = deal_ids
  @emails = emails
  @first_name = first_name
  @id = id
  @last_name = last_name
  @phone_numbers = phone_numbers
  @remote_account_ids = 
  @remote_deal_ids = remote_deal_ids
  @remote_id = remote_id
  @unified_custom_fields = unified_custom_fields
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/stack_one/models/shared/contact.rb', line 66

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_ids == other.
  return false unless @company_name == other.company_name
  return false unless @created_at == other.created_at
  return false unless @custom_fields == other.custom_fields
  return false unless @deal_ids == other.deal_ids
  return false unless @emails == other.emails
  return false unless @first_name == other.first_name
  return false unless @id == other.id
  return false unless @last_name == other.last_name
  return false unless @phone_numbers == other.phone_numbers
  return false unless @remote_account_ids == other.
  return false unless @remote_deal_ids == other.remote_deal_ids
  return false unless @remote_id == other.remote_id
  return false unless @unified_custom_fields == other.unified_custom_fields
  return false unless @updated_at == other.updated_at
  true
end