Class: Twilio::REST::Content::V1::ContentList::TwilioCatalog
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::TwilioCatalog
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
- #body ⇒ Object
- #dynamic_items ⇒ Object
- #id ⇒ Object
- #items ⇒ Object
- #subtitle ⇒ Object
- #title ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ TwilioCatalog
constructor
A new instance of TwilioCatalog.
- #to_json(options = {}) ⇒ Object
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
#body ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350 def body @body end |
#dynamic_items ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350 def dynamic_items @dynamic_items end |
#id ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350 def id @id end |
#items ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350 def items @items end |
#subtitle ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 350 def subtitle @subtitle end |
#title ⇒ Object
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( = {}) { "title": @title, "body": @body, "subtitle": @subtitle, "id": @id, "items": @items, "dynamic_items": @dynamic_items, }.to_json() end |