Class: Twilio::REST::Content::V1::ContentList::WhatsappCard
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::WhatsappCard
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ WhatsappCard
constructor
A new instance of WhatsappCard.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ WhatsappCard
Returns a new instance of WhatsappCard.
391 392 393 394 395 396 397 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 391 def initialize(payload) @body = payload["body"] @footer = payload["footer"] @media = payload["media"] @header_text = payload["header_text"] @actions = payload["actions"] end |
Instance Attribute Details
#actions ⇒ Object
390 391 392 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 390 def actions @actions end |
#body ⇒ Object
390 391 392 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 390 def body @body end |
#footer ⇒ Object
390 391 392 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 390 def @footer end |
#header_text ⇒ Object
390 391 392 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 390 def header_text @header_text end |
#media ⇒ Object
390 391 392 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 390 def media @media end |
Instance Method Details
#to_json(options = {}) ⇒ Object
398 399 400 401 402 403 404 405 406 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 398 def to_json( = {}) { body: @body, footer: @footer, media: @media, header_text: @header_text, actions: @actions, }.to_json() end |