class Twilio::REST::Api::V2010::AccountContext::RecordingContext::AddOnResultInstance

Public Class Methods

new(version, payload, account_sid: nil, reference_sid: nil, sid: nil) click to toggle source

Initialize the AddOnResultInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] account_sid The SID of the

{Account}[https://www.twilio.com/docs/iam/api/account] that created the
Recording AddOnResult resource.

@param [String] reference_sid The SID of the recording to which the AddOnResult

resource belongs.

@param [String] sid The Twilio-provided string that uniquely identifies the

Recording AddOnResult resource to fetch.

@return [AddOnResultInstance] AddOnResultInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
256 def initialize(version, payload, account_sid: nil, reference_sid: nil, sid: nil)
257   super(version)
258 
259   # Marshaled Properties
260   @properties = {
261       'sid' => payload['sid'],
262       'account_sid' => payload['account_sid'],
263       'status' => payload['status'],
264       'add_on_sid' => payload['add_on_sid'],
265       'add_on_configuration_sid' => payload['add_on_configuration_sid'],
266       'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
267       'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
268       'date_completed' => Twilio.deserialize_rfc2822(payload['date_completed']),
269       'reference_sid' => payload['reference_sid'],
270       'subresource_uris' => payload['subresource_uris'],
271   }
272 
273   # Context
274   @instance_context = nil
275   @params = {
276       'account_sid' => account_sid,
277       'reference_sid' => reference_sid,
278       'sid' => sid || @properties['sid'],
279   }
280 end

Public Instance Methods

account_sid() click to toggle source

@return [String] The SID of the Account that created the resource

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
306 def account_sid
307   @properties['account_sid']
308 end
add_on_configuration_sid() click to toggle source

@return [String] The SID of the Add-on configuration

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
324 def add_on_configuration_sid
325   @properties['add_on_configuration_sid']
326 end
add_on_sid() click to toggle source

@return [String] The SID of the Add-on to which the result belongs

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
318 def add_on_sid
319   @properties['add_on_sid']
320 end
context() click to toggle source

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [AddOnResultContext] AddOnResultContext for this AddOnResultInstance

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
286 def context
287   unless @instance_context
288     @instance_context = AddOnResultContext.new(
289         @version,
290         @params['account_sid'],
291         @params['reference_sid'],
292         @params['sid'],
293     )
294   end
295   @instance_context
296 end
date_completed() click to toggle source

@return [Time] The date and time in GMT that the result was completed

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
342 def date_completed
343   @properties['date_completed']
344 end
date_created() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was created

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
330 def date_created
331   @properties['date_created']
332 end
date_updated() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was last updated

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
336 def date_updated
337   @properties['date_updated']
338 end
delete() click to toggle source

Delete the AddOnResultInstance @return [Boolean] true if delete succeeds, false otherwise

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
368 def delete
369   context.delete
370 end
fetch() click to toggle source

Fetch the AddOnResultInstance @return [AddOnResultInstance] Fetched AddOnResultInstance

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
361 def fetch
362   context.fetch
363 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
388 def inspect
389   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
390   "<Twilio.Api.V2010.AddOnResultInstance #{values}>"
391 end
payloads() click to toggle source

Access the payloads @return [payloads] payloads

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
375 def payloads
376   context.payloads
377 end
reference_sid() click to toggle source

@return [String] The SID of the recording to which the AddOnResult resource belongs

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
348 def reference_sid
349   @properties['reference_sid']
350 end
sid() click to toggle source

@return [String] The unique string that identifies the resource

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
300 def sid
301   @properties['sid']
302 end
status() click to toggle source

@return [add_on_result.Status] The status of the result

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
312 def status
313   @properties['status']
314 end
subresource_uris() click to toggle source

@return [String] A list of related resources identified by their relative URIs

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
354 def subresource_uris
355   @properties['subresource_uris']
356 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
381 def to_s
382   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
383   "<Twilio.Api.V2010.AddOnResultInstance #{values}>"
384 end