Class: Twilio::REST::Content::V1::ContentList::ListItem
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::ListItem
- 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) ⇒ ListItem
constructor
A new instance of ListItem.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ListItem
Returns a new instance of ListItem.
262 263 264 265 266 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 262 def initialize(payload) @id = payload["id"] @item = payload["item"] @description = payload["description"] end |
Instance Attribute Details
#description ⇒ Object
261 262 263 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 261 def description @description end |
#id ⇒ Object
261 262 263 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 261 def id @id end |
#item ⇒ Object
261 262 263 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 261 def item @item end |
Instance Method Details
#to_json(options = {}) ⇒ Object
267 268 269 270 271 272 273 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 267 def to_json( = {}) { "id": @id, "item": @item, "description": @description, }.to_json() end |