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
- #configuration ⇒ Object
- #friendly_name ⇒ Object
- #profile ⇒ Object
- #sender_id ⇒ Object
- #webhook ⇒ Object
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.
129 130 131 132 133 134 135 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 129 def initialize(payload) @sender_id = payload["sender_id"] @friendly_name = payload["friendly_name"] @configuration = payload["configuration"] @webhook = payload["webhook"] @profile = payload["profile"] end |
Instance Attribute Details
#configuration ⇒ Object
128 129 130 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 128 def configuration @configuration end |
#friendly_name ⇒ Object
128 129 130 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 128 def friendly_name @friendly_name end |
#profile ⇒ Object
128 129 130 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 128 def profile @profile end |
#sender_id ⇒ Object
128 129 130 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 128 def sender_id @sender_id end |
#webhook ⇒ Object
128 129 130 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 128 def webhook @webhook end |
Instance Method Details
#to_json(options = {}) ⇒ Object
136 137 138 139 140 141 142 143 144 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 136 def to_json( = {}) { "sender_id": @sender_id, "friendly_name": @friendly_name, "configuration": @configuration, "webhook": @webhook, "profile": @profile, }.to_json() end |