Class: Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedSentencesInstance
- Inherits:
-
Twilio::REST::InstanceResource
- Object
- Twilio::REST::InstanceResource
- Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedSentencesInstance
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb
Instance Method Summary collapse
-
#context ⇒ EncryptedSentencesContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#fetch(redacted: :unset) ⇒ EncryptedSentencesInstance
Fetch the EncryptedSentencesInstance.
-
#initialize(version, payload, transcript_sid: nil) ⇒ EncryptedSentencesInstance
constructor
Initialize the EncryptedSentencesInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#location ⇒ String
The location of the encrypted sentences.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #transcript_sid ⇒ String
- #url ⇒ String
Constructor Details
#initialize(version, payload, transcript_sid: nil) ⇒ EncryptedSentencesInstance
Initialize the EncryptedSentencesInstance
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 280 def initialize(version, payload , transcript_sid: nil) super(version) # Marshaled Properties @properties = { 'location' => payload['location'], 'transcript_sid' => payload['transcript_sid'], 'url' => payload['url'], } # Context @instance_context = nil @params = { 'transcript_sid' => transcript_sid || @properties['transcript_sid'] , } end |
Instance Method Details
#context ⇒ EncryptedSentencesContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
300 301 302 303 304 305 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 300 def context unless @instance_context @instance_context = EncryptedSentencesContext.new(@version , @params['transcript_sid']) end @instance_context end |
#fetch(redacted: :unset) ⇒ EncryptedSentencesInstance
Fetch the EncryptedSentencesInstance
329 330 331 332 333 334 335 336 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 329 def fetch( redacted: :unset ) context.fetch( redacted: redacted, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
347 348 349 350 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 347 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Intelligence.V2.EncryptedSentencesInstance #{values}>" end |
#location ⇒ String
Returns The location of the encrypted sentences.
309 310 311 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 309 def location @properties['location'] end |
#to_s ⇒ Object
Provide a user friendly representation
340 341 342 343 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 340 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Intelligence.V2.EncryptedSentencesInstance #{values}>" end |
#transcript_sid ⇒ String
315 316 317 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 315 def transcript_sid @properties['transcript_sid'] end |
#url ⇒ String
321 322 323 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb', line 321 def url @properties['url'] end |