Class: Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedSentencesListResponse

Inherits:
Twilio::REST::InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb,
lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ EncryptedSentencesListResponse

Returns a new instance of EncryptedSentencesListResponse.

Parameters:



168
169
170
171
172
173
174
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 168

def initialize(version, payload, key)
   @encrypted_sentences_instance = payload.body[key].map do |data|
    EncryptedSentencesInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#encrypted_sentencesObject



257
258
259
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 257

def encrypted_sentences
    @encrypted_sentences
end

#encrypted_sentences_instanceObject



176
177
178
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 176

def encrypted_sentences_instance
    @instance
end

#headersObject



261
262
263
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 261

def headers
  @headers
end

#status_codeObject



265
266
267
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 265

def status_code
  @status_code
end