Class: Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedOperatorResultsInstance
- Inherits:
-
Twilio::REST::InstanceResource
- Object
- Twilio::REST::InstanceResource
- Twilio::REST::Intelligence::V2::TranscriptContext::EncryptedOperatorResultsInstance
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb
Instance Method Summary collapse
-
#context ⇒ EncryptedOperatorResultsContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#fetch(redacted: :unset) ⇒ EncryptedOperatorResultsInstance
Fetch the EncryptedOperatorResultsInstance.
-
#initialize(version, payload, transcript_sid: nil) ⇒ EncryptedOperatorResultsInstance
constructor
Initialize the EncryptedOperatorResultsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#locations ⇒ Array<String>
The locations of the encrypted operator results.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #transcript_sid ⇒ String
- #url ⇒ String
Constructor Details
#initialize(version, payload, transcript_sid: nil) ⇒ EncryptedOperatorResultsInstance
Initialize the EncryptedOperatorResultsInstance
139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 139 def initialize(version, payload , transcript_sid: nil) super(version) # Marshaled Properties @properties = { 'locations' => payload['locations'], '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 ⇒ EncryptedOperatorResultsContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
158 159 160 161 162 163 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 158 def context unless @instance_context @instance_context = EncryptedOperatorResultsContext.new(@version , @params['transcript_sid']) end @instance_context end |
#fetch(redacted: :unset) ⇒ EncryptedOperatorResultsInstance
Fetch the EncryptedOperatorResultsInstance
187 188 189 190 191 192 193 194 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 187 def fetch( redacted: :unset ) context.fetch( redacted: redacted, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
205 206 207 208 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 205 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Intelligence.V2.EncryptedOperatorResultsInstance #{values}>" end |
#locations ⇒ Array<String>
Returns The locations of the encrypted operator results.
167 168 169 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 167 def locations @properties['locations'] end |
#to_s ⇒ Object
Provide a user friendly representation
198 199 200 201 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 198 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Intelligence.V2.EncryptedOperatorResultsInstance #{values}>" end |
#transcript_sid ⇒ String
173 174 175 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 173 def transcript_sid @properties['transcript_sid'] end |
#url ⇒ String
179 180 181 |
# File 'lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb', line 179 def url @properties['url'] end |