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.
164 165 166 167 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 164 def initialize(payload) @name = payload["name"] @status = payload["status"] end |
Instance Attribute Details
#name ⇒ Object
163 164 165 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 163 def name @name end |
#status ⇒ Object
163 164 165 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 163 def status @status end |
Instance Method Details
#to_json(options = {}) ⇒ Object
168 169 170 171 172 173 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 168 def to_json( = {}) { "name": @name, "status": @status, }.to_json() end |