Class: Twilio::REST::Insights::V1::ConferenceListResponse

Inherits:
Twilio::REST::InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/insights/v1/conference.rb,
lib/twilio-ruby/rest/insights/v1/conference.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ConferenceListResponse.

Parameters:

  • instance (Array<ConferenceInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


371
372
373
374
375
376
377
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 371

def initialize(version, payload, key)
   @conference_instance = payload.body[key].map do |data|
    ConferenceInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#conferenceObject



460
461
462
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 460

def conference
    @conference
end

#conference_instanceObject



379
380
381
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 379

def conference_instance
    @instance
end

#headersObject



464
465
466
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 464

def headers
  @headers
end

#status_codeObject



468
469
470
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 468

def status_code
  @status_code
end