Class: Twilio::REST::Content::V1::ContentList::CatalogItem
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::CatalogItem
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
- #description ⇒ Object
- #id ⇒ Object
- #media_url ⇒ Object
- #name ⇒ Object
- #price ⇒ Object
- #section_title ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ CatalogItem
constructor
A new instance of CatalogItem.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ CatalogItem
Returns a new instance of CatalogItem.
149 150 151 152 153 154 155 156 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 149 def initialize(payload) @id = payload["id"] @section_title = payload["section_title"] @name = payload["name"] @media_url = payload["media_url"] @price = payload["price"] @description = payload["description"] end |
Instance Attribute Details
#description ⇒ Object
148 149 150 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 148 def description @description end |
#id ⇒ Object
148 149 150 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 148 def id @id end |
#media_url ⇒ Object
148 149 150 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 148 def media_url @media_url end |
#name ⇒ Object
148 149 150 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 148 def name @name end |
#price ⇒ Object
148 149 150 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 148 def price @price end |
#section_title ⇒ Object
148 149 150 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 148 def section_title @section_title end |
Instance Method Details
#to_json(options = {}) ⇒ Object
157 158 159 160 161 162 163 164 165 166 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 157 def to_json( = {}) { "id": @id, "section_title": @section_title, "name": @name, "media_url": @media_url, "price": @price, "description": @description, }.to_json() end |