Class: Twilio::REST::Conversations::V1::ConversationWithParticipantsListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ ConversationWithParticipantsListResponse

Returns a new instance of ConversationWithParticipantsListResponse.

Parameters:



233
234
235
236
237
238
239
240
241
242
243
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 233

def initialize(version, payload, key, limit = :unset)
  data_list = payload.body[key]
  if limit != :unset
    data_list = data_list[0, limit]
  end
  @conversation_with_participants = data_list.map do |data|
    ConversationWithParticipantsInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#conversation_with_participantsObject



245
246
247
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 245

def conversation_with_participants
    @conversation_with_participants
end

#headersObject



249
250
251
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 249

def headers
  @headers
end

#status_codeObject



253
254
255
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 253

def status_code
  @status_code
end