Class: Twilio::REST::Insights::V2::InboundListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of InboundListResponse.

Parameters:

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


343
344
345
346
347
348
349
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 343

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

Instance Method Details

#headersObject



436
437
438
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 436

def headers
  @headers
end

#inboundObject



432
433
434
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 432

def inbound
    @inbound
end

#inbound_instanceObject



351
352
353
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 351

def inbound_instance
    @instance
end

#status_codeObject



440
441
442
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 440

def status_code
  @status_code
end