Class: StackOne::Models::Shared::CrmCreateContactRequestDto

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/crmcreatecontactrequestdto.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, custom_fields: nil, deal_ids: nil, emails: nil, first_name: nil, last_name: nil, passthrough: nil, phone_numbers: nil) ⇒ CrmCreateContactRequestDto

Returns a new instance of CrmCreateContactRequestDto.



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

def initialize(account_ids: nil, company_name: nil, custom_fields: nil, deal_ids: nil, emails: nil, first_name: nil, last_name: nil, passthrough: nil, phone_numbers: nil)
  @account_ids = 
  @company_name = company_name
  @custom_fields = custom_fields
  @deal_ids = deal_ids
  @emails = emails
  @first_name = first_name
  @last_name = last_name
  @passthrough = passthrough
  @phone_numbers = phone_numbers
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/crmcreatecontactrequestdto.rb', line 48

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 @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 @last_name == other.last_name
  return false unless @passthrough == other.passthrough
  return false unless @phone_numbers == other.phone_numbers
  true
end