Class: Twilio::REST::Content::V1::ContentList::ContentUpdateRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::ContentUpdateRequest
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb,
lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ContentUpdateRequest
constructor
A new instance of ContentUpdateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ContentUpdateRequest
Returns a new instance of ContentUpdateRequest.
200 201 202 203 204 205 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 200 def initialize(payload) @friendly_name = payload["friendly_name"] @variables = payload["variables"] @language = payload["language"] @types = payload["types"] end |
Instance Attribute Details
#friendly_name ⇒ Object
199 200 201 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 199 def friendly_name @friendly_name end |
#language ⇒ Object
199 200 201 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 199 def language @language end |
#types ⇒ Object
199 200 201 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 199 def types @types end |
#variables ⇒ Object
199 200 201 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 199 def variables @variables end |
Instance Method Details
#to_json(options = {}) ⇒ Object
206 207 208 209 210 211 212 213 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 206 def to_json( = {}) { "friendly_name": @friendly_name, "variables": @variables, "language": @language, "types": @types, }.to_json() end |