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
Returns a new instance of TwilioText.
472 473 474 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 472 def initialize(payload) @body = payload["body"] end |
Instance Attribute Details
#body ⇒ Object
471 472 473 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 471 def body @body end |
Instance Method Details
#to_json(options = {}) ⇒ Object
475 476 477 478 479 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 475 def to_json( = {}) { "body": @body, }.to_json() end |