Class: Twilio::REST::Content::V1::ContentList::ContentCreateRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ContentCreateRequest



178
179
180
181
182
183
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 178

def initialize(payload)
        @friendly_name = payload["friendly_name"]
        @variables = payload["variables"]
        @language = payload["language"]
        @types = payload["types"]
end

Instance Attribute Details

#friendly_nameObject



177
178
179
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 177

def friendly_name
  @friendly_name
end

#languageObject



177
178
179
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 177

def language
  @language
end

#typesObject



177
178
179
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 177

def types
  @types
end

#variablesObject



177
178
179
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 177

def variables
  @variables
end

Instance Method Details

#to_json(options = {}) ⇒ Object



184
185
186
187
188
189
190
191
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 184

def to_json(options = {})
{
        "friendly_name": @friendly_name,
        "variables": @variables,
        "language": @language,
        "types": @types,
}.to_json(options)
end