Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsUpdate

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb,
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ MessagingV2ChannelsSenderRequestsUpdate

Returns a new instance of MessagingV2ChannelsSenderRequestsUpdate.



146
147
148
149
150
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 146

def initialize(payload)
        @configuration = payload["configuration"]
        @webhook = payload["webhook"]
        @profile = payload["profile"]
end

Instance Attribute Details

#configurationObject

Parameters:

  • : (configuration)
    ChannelsSenderList.MessagingV2ChannelsSenderConfiguration
  • : (webhook)
    ChannelsSenderList.MessagingV2ChannelsSenderWebhook
  • : (profile)
    ChannelsSenderList.MessagingV2ChannelsSenderProfile


145
146
147
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 145

def configuration
  @configuration
end

#profileObject

Parameters:

  • : (configuration)
    ChannelsSenderList.MessagingV2ChannelsSenderConfiguration
  • : (webhook)
    ChannelsSenderList.MessagingV2ChannelsSenderWebhook
  • : (profile)
    ChannelsSenderList.MessagingV2ChannelsSenderProfile


145
146
147
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 145

def profile
  @profile
end

#webhookObject

Parameters:

  • : (configuration)
    ChannelsSenderList.MessagingV2ChannelsSenderConfiguration
  • : (webhook)
    ChannelsSenderList.MessagingV2ChannelsSenderWebhook
  • : (profile)
    ChannelsSenderList.MessagingV2ChannelsSenderProfile


145
146
147
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 145

def webhook
  @webhook
end

Instance Method Details

#to_json(options = {}) ⇒ Object



151
152
153
154
155
156
157
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 151

def to_json(options = {})
{
        "configuration": @configuration,
        "webhook": @webhook,
        "profile": @profile,
}.to_json(options)
end