Class: Twilio::REST::Conversations::V2::CommunicationList::ConversationsV2ContentTranscriptionTranscriptionWords
- Inherits:
-
Object
- Object
- Twilio::REST::Conversations::V2::CommunicationList::ConversationsV2ContentTranscriptionTranscriptionWords
- Defined in:
- lib/twilio-ruby/rest/conversations/v2/communication.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ConversationsV2ContentTranscriptionTranscriptionWords
constructor
A new instance of ConversationsV2ContentTranscriptionTranscriptionWords.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ConversationsV2ContentTranscriptionTranscriptionWords
Returns a new instance of ConversationsV2ContentTranscriptionTranscriptionWords.
68 69 70 71 72 |
# File 'lib/twilio-ruby/rest/conversations/v2/communication.rb', line 68 def initialize(payload) @text = payload["text"] @start_time = payload["start_time"] @end_time = payload["end_time"] end |
Instance Attribute Details
#end_time ⇒ Object
67 68 69 |
# File 'lib/twilio-ruby/rest/conversations/v2/communication.rb', line 67 def end_time @end_time end |
#start_time ⇒ Object
67 68 69 |
# File 'lib/twilio-ruby/rest/conversations/v2/communication.rb', line 67 def start_time @start_time end |
#text ⇒ Object
67 68 69 |
# File 'lib/twilio-ruby/rest/conversations/v2/communication.rb', line 67 def text @text end |
Instance Method Details
#to_json(options = {}) ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/twilio-ruby/rest/conversations/v2/communication.rb', line 73 def to_json( = {}) { "text": @text, "startTime": @start_time, "endTime": @end_time, }.to_json() end |