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
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.
385 386 387 388 389 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 385 def initialize(payload) @body = payload["body"] @button = payload["button"] @items = payload["items"] end |
Instance Attribute Details
#body ⇒ Object
384 385 386 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 384 def body @body end |
#button ⇒ Object
384 385 386 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 384 def @button end |
#items ⇒ Object
384 385 386 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 384 def items @items end |
Instance Method Details
#to_json(options = {}) ⇒ Object
390 391 392 393 394 395 396 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 390 def to_json( = {}) { "body": @body, "button": @button, "items": @items, }.to_json() end |