Class: WhatsAppCloudApi::Types::ContactRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/whatsapp_cloud_api/types.rb

Overview

Contact structures

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ContactRecord

Returns a new instance of ContactRecord.



184
185
186
187
188
189
# File 'lib/whatsapp_cloud_api/types.rb', line 184

def initialize(data)
  @wa_id = data['wa_id']
  @phone_number = data['phone_number']
  @profile_name = data['profile_name']
   = data['metadata']
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



182
183
184
# File 'lib/whatsapp_cloud_api/types.rb', line 182

def 
  
end

#phone_numberObject (readonly)

Returns the value of attribute phone_number.



182
183
184
# File 'lib/whatsapp_cloud_api/types.rb', line 182

def phone_number
  @phone_number
end

#profile_nameObject (readonly)

Returns the value of attribute profile_name.



182
183
184
# File 'lib/whatsapp_cloud_api/types.rb', line 182

def profile_name
  @profile_name
end

#wa_idObject (readonly)

Returns the value of attribute wa_id.



182
183
184
# File 'lib/whatsapp_cloud_api/types.rb', line 182

def wa_id
  @wa_id
end