Class: Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedOperatorResultsContext
- Inherits:
-
Twilio::REST::InstanceContext
- Object
- Twilio::REST::InstanceContext
- Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedOperatorResultsContext
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb
Instance Method Summary collapse
-
#fetch(redacted: :unset) ⇒ EncryptedOperatorResultsInstance
Fetch the EncryptedOperatorResultsInstance.
-
#initialize(version, transcript_sid) ⇒ EncryptedOperatorResultsContext
constructor
Initialize the EncryptedOperatorResultsContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, transcript_sid) ⇒ EncryptedOperatorResultsContext
Initialize the EncryptedOperatorResultsContext
51 52 53 54 55 56 57 58 59 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 51 def initialize(version, transcript_sid) super(version) # Path Solution @solution = { transcript_sid: transcript_sid, } @uri = "/Transcripts/#{@solution[:transcript_sid]}/OperatorResults/Encrypted" end |
Instance Method Details
#fetch(redacted: :unset) ⇒ EncryptedOperatorResultsInstance
Fetch the EncryptedOperatorResultsInstance
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 64 def fetch( redacted: :unset ) params = Twilio::Values.of({ 'Redacted' => redacted, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, params: params, headers: headers) EncryptedOperatorResultsInstance.new( @version, payload, transcript_sid: @solution[:transcript_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
95 96 97 98 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 95 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Intelligence.V2.EncryptedOperatorResultsContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
88 89 90 91 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 88 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Intelligence.V2.EncryptedOperatorResultsContext #{context}>" end |