Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsCreate

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) ⇒ MessagingV2ChannelsSenderRequestsCreate

Returns a new instance of MessagingV2ChannelsSenderRequestsCreate.



60
61
62
63
64
65
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 60

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

Instance Attribute Details

#configurationObject

Parameters:

  • : (sender_id)
    String

    The ID of this Sender prefixed with the channel, e.g., ‘whatsapp:E.164`

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


59
60
61
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 59

def configuration
  @configuration
end

#profileObject

Parameters:

  • : (sender_id)
    String

    The ID of this Sender prefixed with the channel, e.g., ‘whatsapp:E.164`

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


59
60
61
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 59

def profile
  @profile
end

#sender_idObject

Parameters:

  • : (sender_id)
    String

    The ID of this Sender prefixed with the channel, e.g., ‘whatsapp:E.164`

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


59
60
61
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 59

def sender_id
  @sender_id
end

#webhookObject

Parameters:

  • : (sender_id)
    String

    The ID of this Sender prefixed with the channel, e.g., ‘whatsapp:E.164`

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


59
60
61
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 59

def webhook
  @webhook
end

Instance Method Details

#to_json(options = {}) ⇒ Object



66
67
68
69
70
71
72
73
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 66

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