Class: WhatsAppCloudApi::Types::ContactRecord
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::ContactRecord
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Overview
Contact structures
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#profile_name ⇒ Object
readonly
Returns the value of attribute profile_name.
-
#wa_id ⇒ Object
readonly
Returns the value of attribute wa_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ ContactRecord
constructor
A new instance of ContactRecord.
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
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
182 183 184 |
# File 'lib/whatsapp_cloud_api/types.rb', line 182 def end |
#phone_number ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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 |