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.
222 223 224 225 226 227 228 229 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 222 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
221 222 223 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 221 def body @body end |
#dynamic_items ⇒ Object
221 222 223 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 221 def dynamic_items @dynamic_items end |
#id ⇒ Object
221 222 223 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 221 def id @id end |
#items ⇒ Object
221 222 223 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 221 def items @items end |
#subtitle ⇒ Object
221 222 223 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 221 def subtitle @subtitle end |
#title ⇒ Object
221 222 223 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 221 def title @title end |
Instance Method Details
#to_json(options = {}) ⇒ Object
230 231 232 233 234 235 236 237 238 239 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 230 def to_json( = {}) { title: @title, body: @body, subtitle: @subtitle, id: @id, items: @items, dynamic_items: @dynamic_items, }.to_json() end |