Class: WhatsAppCloudApi::Types::CallRecord

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

Overview

Call structures

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#directionObject (readonly)

Returns the value of attribute direction.



194
195
196
# File 'lib/whatsapp_cloud_api/types.rb', line 194

def direction
  @direction
end

#duration_secondsObject (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_atObject (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

#idObject (readonly)

Returns the value of attribute id.



194
195
196
# File 'lib/whatsapp_cloud_api/types.rb', line 194

def id
  @id
end

#started_atObject (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

#statusObject (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_idObject (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_idObject (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