Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsUpdate
- Inherits:
-
Object
- Object
- Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsUpdate
- 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) ⇒ MessagingV2ChannelsSenderRequestsUpdate
constructor
A new instance of MessagingV2ChannelsSenderRequestsUpdate.
- #to_json(options = {}) ⇒ Object
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
#configuration ⇒ Object
48 49 50 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 48 def configuration @configuration end |
#profile ⇒ Object
48 49 50 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 48 def profile @profile end |
#webhook ⇒ Object
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( = {}) { "configuration": @configuration, "webhook": @webhook, "profile": @profile, }.to_json() end |