Class: WhatsAppCloudApi::Types::CallRecord
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::CallRecord
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Overview
Call structures
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#duration_seconds ⇒ Object
readonly
Returns the value of attribute duration_seconds.
-
#ended_at ⇒ Object
readonly
Returns the value of attribute ended_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#whatsapp_contact_id ⇒ Object
readonly
Returns the value of attribute whatsapp_contact_id.
-
#whatsapp_conversation_id ⇒ Object
readonly
Returns the value of attribute whatsapp_conversation_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ CallRecord
constructor
A new instance of CallRecord.
Constructor Details
#initialize(data) ⇒ CallRecord
Returns a new instance of CallRecord.
197 198 199 200 201 202 203 204 205 206 |
# File 'lib/whatsapp_cloud_api/types.rb', line 197 def initialize(data) @id = data['id'] @direction = data['direction'] @status = data['status'] @duration_seconds = data['duration_seconds'] @started_at = data['started_at'] @ended_at = data['ended_at'] @whatsapp_conversation_id = data['whatsapp_conversation_id'] @whatsapp_contact_id = data['whatsapp_contact_id'] end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def direction @direction end |
#duration_seconds ⇒ Object (readonly)
Returns the value of attribute duration_seconds.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def duration_seconds @duration_seconds end |
#ended_at ⇒ Object (readonly)
Returns the value of attribute ended_at.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def ended_at @ended_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def id @id end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def started_at @started_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def status @status end |
#whatsapp_contact_id ⇒ Object (readonly)
Returns the value of attribute whatsapp_contact_id.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def whatsapp_contact_id @whatsapp_contact_id end |
#whatsapp_conversation_id ⇒ Object (readonly)
Returns the value of attribute whatsapp_conversation_id.
194 195 196 |
# File 'lib/whatsapp_cloud_api/types.rb', line 194 def whatsapp_conversation_id @whatsapp_conversation_id end |