Class: Twilio::REST::Content::V1::ContentList::CardAction
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::CardAction
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
- #code ⇒ Object
- #id ⇒ Object
- #phone ⇒ Object
- #title ⇒ Object
- #type ⇒ Object
- #url ⇒ Object
- #webview_size ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ CardAction
constructor
A new instance of CardAction.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ CardAction
Returns a new instance of CardAction.
75 76 77 78 79 80 81 82 83 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75 def initialize(payload) @type = payload["type"] @title = payload["title"] @url = payload["url"] @phone = payload["phone"] @id = payload["id"] @code = payload["code"] @webview_size = payload["webview_size"] end |
Instance Attribute Details
#code ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def code @code end |
#id ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def id @id end |
#phone ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def phone @phone end |
#title ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def title @title end |
#type ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def type @type end |
#url ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def url @url end |
#webview_size ⇒ Object
74 75 76 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 74 def webview_size @webview_size end |
Instance Method Details
#to_json(options = {}) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 84 def to_json( = {}) { "type": @type, "title": @title, "url": @url, "phone": @phone, "id": @id, "code": @code, "webview_size": @webview_size, }.to_json() end |