Class: Twilio::REST::Content::V1::ContentList::QuickReplyAction
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::QuickReplyAction
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ QuickReplyAction
constructor
A new instance of QuickReplyAction.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ QuickReplyAction
Returns a new instance of QuickReplyAction.
259 260 261 262 263 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 259 def initialize(payload) @type = payload["type"] @title = payload["title"] @id = payload["id"] end |
Instance Attribute Details
#id ⇒ Object
258 259 260 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 258 def id @id end |
#title ⇒ Object
258 259 260 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 258 def title @title end |
#type ⇒ Object
258 259 260 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 258 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
264 265 266 267 268 269 270 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 264 def to_json( = {}) { "type": @type, "title": @title, "id": @id, }.to_json() end |