Class: Twilio::REST::Content::V1::ContentList::WhatsappFlows
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::WhatsappFlows
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
- #body ⇒ Object
- #button_text ⇒ Object
- #flow_first_page_id ⇒ Object
- #flow_id ⇒ Object
- #flow_token ⇒ Object
- #is_flow_first_page_endpoint ⇒ Object
- #media_url ⇒ Object
- #subtitle ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ WhatsappFlows
constructor
A new instance of WhatsappFlows.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ WhatsappFlows
Returns a new instance of WhatsappFlows.
597 598 599 600 601 602 603 604 605 606 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 597 def initialize(payload) @body = payload["body"] @button_text = payload["button_text"] @subtitle = payload["subtitle"] @media_url = payload["media_url"] @flow_id = payload["flow_id"] @flow_token = payload["flow_token"] @flow_first_page_id = payload["flow_first_page_id"] @is_flow_first_page_endpoint = payload["is_flow_first_page_endpoint"] end |
Instance Attribute Details
#body ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def body @body end |
#button_text ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def @button_text end |
#flow_first_page_id ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def flow_first_page_id @flow_first_page_id end |
#flow_id ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def flow_id @flow_id end |
#flow_token ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def flow_token @flow_token end |
#is_flow_first_page_endpoint ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def is_flow_first_page_endpoint @is_flow_first_page_endpoint end |
#media_url ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def media_url @media_url end |
#subtitle ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596 def subtitle @subtitle end |
Instance Method Details
#to_json(options = {}) ⇒ Object
607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 607 def to_json( = {}) { "body": @body, "button_text": @button_text, "subtitle": @subtitle, "media_url": @media_url, "flow_id": @flow_id, "flow_token": @flow_token, "flow_first_page_id": @flow_first_page_id, "is_flow_first_page_endpoint": @is_flow_first_page_endpoint, }.to_json() end |