Class: Twilio::REST::Content::V1::ContentList::FlowsPageComponentSelectItem
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::FlowsPageComponentSelectItem
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ FlowsPageComponentSelectItem
constructor
A new instance of FlowsPageComponentSelectItem.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ FlowsPageComponentSelectItem
Returns a new instance of FlowsPageComponentSelectItem.
239 240 241 242 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 239 def initialize(payload) @id = payload["id"] @title = payload["title"] end |
Instance Attribute Details
#id ⇒ Object
238 239 240 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 238 def id @id end |
#title ⇒ Object
238 239 240 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 238 def title @title end |
Instance Method Details
#to_json(options = {}) ⇒ Object
243 244 245 246 247 248 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 243 def to_json( = {}) { "id": @id, "title": @title, }.to_json() end |