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.



49
50
51
52
53
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 49

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


48
49
50
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 48

def configuration
  @configuration
end

#profileObject

Parameters:

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


48
49
50
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 48

def profile
  @profile
end

#webhookObject

Parameters:

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


48
49
50
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 48

def webhook
  @webhook
end

Instance Method Details

#to_json(options = {}) ⇒ Object



54
55
56
57
58
59
60
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 54

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