Class: Twilio::REST::Content::V1::ContentList::TwilioFlows
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::TwilioFlows
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
- #body ⇒ Object
- #button_text ⇒ Object
- #media_url ⇒ Object
- #pages ⇒ Object
- #subtitle ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ TwilioFlows
constructor
A new instance of TwilioFlows.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ TwilioFlows
Returns a new instance of TwilioFlows.
379 380 381 382 383 384 385 386 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 379 def initialize(payload) @body = payload["body"] @button_text = payload["button_text"] @subtitle = payload["subtitle"] @media_url = payload["media_url"] @pages = payload["pages"] @type = payload["type"] end |
Instance Attribute Details
#body ⇒ Object
378 379 380 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378 def body @body end |
#button_text ⇒ Object
378 379 380 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378 def @button_text end |
#media_url ⇒ Object
378 379 380 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378 def media_url @media_url end |
#pages ⇒ Object
378 379 380 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378 def pages @pages end |
#subtitle ⇒ Object
378 379 380 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378 def subtitle @subtitle end |
#type ⇒ Object
378 379 380 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
387 388 389 390 391 392 393 394 395 396 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387 def to_json( = {}) { "body": @body, "button_text": @button_text, "subtitle": @subtitle, "media_url": @media_url, "pages": @pages, "type": @type, }.to_json() end |