Class: Twilio::REST::Content::V1::ContentList::TwilioListPicker
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::TwilioListPicker
- 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) ⇒ TwilioListPicker
constructor
A new instance of TwilioListPicker.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ TwilioListPicker
Returns a new instance of TwilioListPicker.
413 414 415 416 417 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 413 def initialize(payload) @body = payload["body"] @button = payload["button"] @items = payload["items"] end |
Instance Attribute Details
#body ⇒ Object
412 413 414 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 412 def body @body end |
#button ⇒ Object
412 413 414 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 412 def @button end |
#items ⇒ Object
412 413 414 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 412 def items @items end |
Instance Method Details
#to_json(options = {}) ⇒ Object
418 419 420 421 422 423 424 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 418 def to_json( = {}) { "body": @body, "button": @button, "items": @items, }.to_json() end |