Class: Twilio::REST::Content::V1::ContentList::TwilioCatalog

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) ⇒ TwilioCatalog

Returns a new instance of TwilioCatalog.



351
352
353
354
355
356
357
358
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 351

def initialize(payload)
        @title = payload["title"]
        @body = payload["body"]
        @subtitle = payload["subtitle"]
        @id = payload["id"]
        @items = payload["items"]
        @dynamic_items = payload["dynamic_items"]
end

Instance Attribute Details

#bodyObject

Parameters:



350
351
352
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350

def body
  @body
end

#dynamic_itemsObject

Parameters:



350
351
352
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350

def dynamic_items
  @dynamic_items
end

#idObject

Parameters:



350
351
352
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350

def id
  @id
end

#itemsObject

Parameters:



350
351
352
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350

def items
  @items
end

#subtitleObject

Parameters:



350
351
352
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350

def subtitle
  @subtitle
end

#titleObject

Parameters:



350
351
352
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350

def title
  @title
end

Instance Method Details

#to_json(options = {}) ⇒ Object



359
360
361
362
363
364
365
366
367
368
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 359

def to_json(options = {})
{
        "title": @title,
        "body": @body,
        "subtitle": @subtitle,
        "id": @id,
        "items": @items,
        "dynamic_items": @dynamic_items,
}.to_json(options)
end