Class: WhatsAppCloudApi::Types::ConversationRecord
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::ConversationRecord
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Overview
Conversation structures
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#kapso ⇒ Object
readonly
Returns the value of attribute kapso.
-
#last_active_at ⇒ Object
readonly
Returns the value of attribute last_active_at.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#phone_number_id ⇒ Object
readonly
Returns the value of attribute phone_number_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data) ⇒ ConversationRecord
constructor
A new instance of ConversationRecord.
Constructor Details
#initialize(data) ⇒ ConversationRecord
Returns a new instance of ConversationRecord.
169 170 171 172 173 174 175 176 177 |
# File 'lib/whatsapp_cloud_api/types.rb', line 169 def initialize(data) @id = data['id'] @phone_number = data['phone_number'] @phone_number_id = data['phone_number_id'] @status = data['status'] @last_active_at = data['last_active_at'] @kapso = data['kapso'] = data['metadata'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def id @id end |
#kapso ⇒ Object (readonly)
Returns the value of attribute kapso.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def kapso @kapso end |
#last_active_at ⇒ Object (readonly)
Returns the value of attribute last_active_at.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def last_active_at @last_active_at end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def end |
#phone_number ⇒ Object (readonly)
Returns the value of attribute phone_number.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def phone_number @phone_number end |
#phone_number_id ⇒ Object (readonly)
Returns the value of attribute phone_number_id.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def phone_number_id @phone_number_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
166 167 168 |
# File 'lib/whatsapp_cloud_api/types.rb', line 166 def status @status end |