Class: Twilio::REST::Messaging::V1::ServiceContext::ChannelSenderListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Messaging::V1::ServiceContext::ChannelSenderListResponse
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb,
lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb
Instance Method Summary collapse
- #channel_sender ⇒ Object
- #channel_sender_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ChannelSenderListResponse
constructor
A new instance of ChannelSenderListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ChannelSenderListResponse
Returns a new instance of ChannelSenderListResponse.
358 359 360 361 362 363 364 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb', line 358 def initialize(version, payload, key) @channel_sender_instance = payload.body[key].map do |data| ChannelSenderInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#channel_sender ⇒ Object
447 448 449 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb', line 447 def channel_sender @channel_sender end |
#channel_sender_instance ⇒ Object
366 367 368 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb', line 366 def channel_sender_instance @instance end |
#headers ⇒ Object
451 452 453 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb', line 451 def headers @headers end |
#status_code ⇒ Object
455 456 457 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb', line 455 def status_code @status_code end |