Class: Twilio::REST::Memory::V1::RecallList::CommunicationContent
- Inherits:
-
Object
- Object
- Twilio::REST::Memory::V1::RecallList::CommunicationContent
- Defined in:
- lib/twilio-ruby/rest/memory/v1/recall.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ CommunicationContent
constructor
A new instance of CommunicationContent.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ CommunicationContent
Returns a new instance of CommunicationContent.
25 26 27 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 25 def initialize(payload) @text = payload["text"] end |
Instance Attribute Details
#text ⇒ Object
24 25 26 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 24 def text @text end |
Instance Method Details
#to_json(options = {}) ⇒ Object
28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 28 def to_json( = {}) { "text": @text, }.to_json() end |