Class: Twilio::REST::Content::V1::ContentList::TwilioQuickReply
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::TwilioQuickReply
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ TwilioQuickReply
constructor
A new instance of TwilioQuickReply.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ TwilioQuickReply
Returns a new instance of TwilioQuickReply.
457 458 459 460 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 457 def initialize(payload) @body = payload["body"] @actions = payload["actions"] end |
Instance Attribute Details
#actions ⇒ Object
456 457 458 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 456 def actions @actions end |
#body ⇒ Object
456 457 458 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 456 def body @body end |
Instance Method Details
#to_json(options = {}) ⇒ Object
461 462 463 464 465 466 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 461 def to_json( = {}) { "body": @body, "actions": @actions, }.to_json() end |