Class: Twilio::REST::Content::V1::ContentList::TwilioText
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::TwilioText
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ TwilioText
constructor
A new instance of TwilioText.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ TwilioText
478 479 480 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 478 def initialize(payload) @body = payload["body"] end |
Instance Attribute Details
#body ⇒ Object
477 478 479 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 477 def body @body end |
Instance Method Details
#to_json(options = {}) ⇒ Object
481 482 483 484 485 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 481 def to_json( = {}) { "body": @body, }.to_json() end |