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.
360 361 362 363 364 365 366 367 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 360 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
359 360 361 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359 def body @body end |
#button_text ⇒ Object
359 360 361 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359 def @button_text end |
#media_url ⇒ Object
359 360 361 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359 def media_url @media_url end |
#pages ⇒ Object
359 360 361 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359 def pages @pages end |
#subtitle ⇒ Object
359 360 361 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359 def subtitle @subtitle end |
#type ⇒ Object
359 360 361 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
368 369 370 371 372 373 374 375 376 377 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 368 def to_json( = {}) { "body": @body, "button_text": @button_text, "subtitle": @subtitle, "media_url": @media_url, "pages": @pages, "type": @type, }.to_json() end |