Class: Twilio::REST::Content::V1::ContentList::ContentCreateRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::ContentCreateRequest
- 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) ⇒ ContentCreateRequest
constructor
A new instance of ContentCreateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ContentCreateRequest
Returns a new instance of ContentCreateRequest.
181 182 183 184 185 186 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 181 def initialize(payload) @friendly_name = payload["friendly_name"] @variables = payload["variables"] @language = payload["language"] @types = payload["types"] end |
Instance Attribute Details
#friendly_name ⇒ Object
180 181 182 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 180 def friendly_name @friendly_name end |
#language ⇒ Object
180 181 182 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 180 def language @language end |
#types ⇒ Object
180 181 182 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 180 def types @types end |
#variables ⇒ Object
180 181 182 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 180 def variables @variables end |
Instance Method Details
#to_json(options = {}) ⇒ Object
187 188 189 190 191 192 193 194 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 187 def to_json( = {}) { "friendly_name": @friendly_name, "variables": @variables, "language": @language, "types": @types, }.to_json() end |