Class: WhatsAppCloudApi::Types::ConversationRecord

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

Overview

Conversation structures

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



166
167
168
# File 'lib/whatsapp_cloud_api/types.rb', line 166

def id
  @id
end

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

#metadataObject (readonly)

Returns the value of attribute metadata.



166
167
168
# File 'lib/whatsapp_cloud_api/types.rb', line 166

def 
  
end

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

#statusObject (readonly)

Returns the value of attribute status.



166
167
168
# File 'lib/whatsapp_cloud_api/types.rb', line 166

def status
  @status
end