Class: Twilio::REST::Conversations::V1::ServiceContext::ConversationWithParticipantsListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::ServiceContext::ConversationWithParticipantsListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb
Instance Method Summary collapse
- #conversation_with_participants ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ConversationWithParticipantsListResponse
constructor
A new instance of ConversationWithParticipantsListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ConversationWithParticipantsListResponse
Returns a new instance of ConversationWithParticipantsListResponse.
237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb', line 237 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_participants ⇒ Object
249 250 251 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb', line 249 def conversation_with_participants @conversation_with_participants end |
#headers ⇒ Object
253 254 255 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb', line 253 def headers @headers end |
#status_code ⇒ Object
257 258 259 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb', line 257 def status_code @status_code end |