Class: Twilio::REST::Content::V1::ContentList::TwilioText

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Parameters:

  • : (body)
    String


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(options = {})
{
        "body": @body,
}.to_json(options)
end