Class: Twilio::REST::Intelligence::V2::TranscriptContext::SentenceListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Intelligence::V2::TranscriptContext::SentenceListResponse
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SentenceListResponse
constructor
A new instance of SentenceListResponse.
- #sentence ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SentenceListResponse
Returns a new instance of SentenceListResponse.
234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb', line 234 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @sentence = data_list.map do |data| SentenceInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
250 251 252 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb', line 250 def headers @headers end |
#sentence ⇒ Object
246 247 248 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb', line 246 def sentence @sentence end |
#status_code ⇒ Object
254 255 256 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb', line 254 def status_code @status_code end |