Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileGenericResponseWebsites
- Inherits:
-
Object
- Object
- Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileGenericResponseWebsites
- 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) ⇒ MessagingV2ChannelsSenderProfileGenericResponseWebsites
constructor
A new instance of MessagingV2ChannelsSenderProfileGenericResponseWebsites.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ MessagingV2ChannelsSenderProfileGenericResponseWebsites
Returns a new instance of MessagingV2ChannelsSenderProfileGenericResponseWebsites.
107 108 109 110 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 107 def initialize(payload) @website = payload["website"] @label = payload["label"] end |
Instance Attribute Details
#label ⇒ Object
106 107 108 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 106 def label @label end |
#website ⇒ Object
106 107 108 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 106 def website @website end |
Instance Method Details
#to_json(options = {}) ⇒ Object
111 112 113 114 115 116 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 111 def to_json( = {}) { "website": @website, "label": @label, }.to_json() end |