Class: Twilio::REST::Content::V1::ContentList::ListItem

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

Returns a new instance of ListItem.



256
257
258
259
260
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 256

def initialize(payload)
        @id = payload["id"]
        @item = payload["item"]
        @description = payload["description"]
end

Instance Attribute Details

#descriptionObject

Parameters:



255
256
257
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 255

def description
  @description
end

#idObject

Parameters:



255
256
257
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 255

def id
  @id
end

#itemObject

Parameters:



255
256
257
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 255

def item
  @item
end

Instance Method Details

#to_json(options = {}) ⇒ Object



261
262
263
264
265
266
267
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 261

def to_json(options = {})
{
        "id": @id,
        "item": @item,
        "description": @description,
}.to_json(options)
end