Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsCreate
- Inherits:
-
Object
- Object
- Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsCreate
- 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
-
#initialize(payload) ⇒ MessagingV2ChannelsSenderRequestsCreate
constructor
A new instance of MessagingV2ChannelsSenderRequestsCreate.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ MessagingV2ChannelsSenderRequestsCreate
Returns a new instance of MessagingV2ChannelsSenderRequestsCreate.
28 29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 28 def initialize(payload) @sender_id = payload["sender_id"] @configuration = payload["configuration"] @webhook = payload["webhook"] @profile = payload["profile"] end |
Instance Attribute Details
#configuration ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 27 def configuration @configuration end |
#profile ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 27 def profile @profile end |
#sender_id ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 27 def sender_id @sender_id end |
#webhook ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 27 def webhook @webhook end |
Instance Method Details
#to_json(options = {}) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 34 def to_json( = {}) { "sender_id": @sender_id, "configuration": @configuration, "webhook": @webhook, "profile": @profile, }.to_json() end |