Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsCarrier
- Inherits:
-
Object
- Object
- Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsCarrier
- 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) ⇒ MessagingV2RcsCarrier
constructor
A new instance of MessagingV2RcsCarrier.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ MessagingV2RcsCarrier
Returns a new instance of MessagingV2RcsCarrier.
167 168 169 170 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 167 def initialize(payload) @name = payload["name"] @status = payload["status"] end |
Instance Attribute Details
#name ⇒ Object
166 167 168 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 166 def name @name end |
#status ⇒ Object
166 167 168 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 166 def status @status end |
Instance Method Details
#to_json(options = {}) ⇒ Object
171 172 173 174 175 176 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 171 def to_json( = {}) { "name": @name, "status": @status, }.to_json() end |