Class: Twilio::REST::Api::V2010::AccountContext::RecordingContext::AddOnResultInstance
- Inherits:
- 
      InstanceResource
      
        - Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::RecordingContext::AddOnResultInstance
 
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
Instance Method Summary collapse
- 
  
    
      #account_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    The SID of the Account that created the resource. 
- 
  
    
      #add_on_configuration_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    The SID of the Add-on configuration. 
- 
  
    
      #add_on_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    The SID of the Add-on to which the result belongs. 
- 
  
    
      #context  ⇒ AddOnResultContext 
    
    
  
  
  
  
  
  
  
  
  
    Generate an instance context for the instance, the context is capable of performing various actions. 
- 
  
    
      #date_completed  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    The date and time in GMT that the result was completed. 
- 
  
    
      #date_created  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    The RFC 2822 date and time in GMT that the resource was created. 
- 
  
    
      #date_updated  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    The RFC 2822 date and time in GMT that the resource was last updated. 
- 
  
    
      #delete  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Delete the AddOnResultInstance. 
- 
  
    
      #fetch  ⇒ AddOnResultInstance 
    
    
  
  
  
  
  
  
  
  
  
    Fetch the AddOnResultInstance. 
- 
  
    
      #initialize(version, payload, account_sid: nil, reference_sid: nil, sid: nil)  ⇒ AddOnResultInstance 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initialize the AddOnResultInstance. 
- 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a detailed, user friendly representation. 
- 
  
    
      #payloads  ⇒ payloads 
    
    
  
  
  
  
  
  
  
  
  
    Access the payloads. 
- 
  
    
      #reference_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    The SID of the recording to which the AddOnResult resource belongs. 
- 
  
    
      #sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    The unique string that identifies the resource. 
- 
  
    
      #status  ⇒ add_on_result.Status 
    
    
  
  
  
  
  
  
  
  
  
    The status of the result. 
- 
  
    
      #subresource_uris  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    A list of related resources identified by their relative URIs. 
- 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a user friendly representation. 
Constructor Details
#initialize(version, payload, account_sid: nil, reference_sid: nil, sid: nil) ⇒ AddOnResultInstance
Initialize the AddOnResultInstance
| 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 256 def initialize(version, payload, account_sid: nil, reference_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'status' => payload['status'], 'add_on_sid' => payload['add_on_sid'], 'add_on_configuration_sid' => payload['add_on_configuration_sid'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 'date_completed' => Twilio.deserialize_rfc2822(payload['date_completed']), 'reference_sid' => payload['reference_sid'], 'subresource_uris' => payload['subresource_uris'], } # Context @instance_context = nil @params = { 'account_sid' => account_sid, 'reference_sid' => reference_sid, 'sid' => sid || @properties['sid'], } end | 
Instance Method Details
#account_sid ⇒ String
| 306 307 308 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 306 def account_sid @properties['account_sid'] end | 
#add_on_configuration_sid ⇒ String
| 324 325 326 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 324 def add_on_configuration_sid @properties['add_on_configuration_sid'] end | 
#add_on_sid ⇒ String
| 318 319 320 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 318 def add_on_sid @properties['add_on_sid'] end | 
#context ⇒ AddOnResultContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
| 286 287 288 289 290 291 292 293 294 295 296 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 286 def context unless @instance_context @instance_context = AddOnResultContext.new( @version, @params['account_sid'], @params['reference_sid'], @params['sid'], ) end @instance_context end | 
#date_completed ⇒ Time
| 342 343 344 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 342 def date_completed @properties['date_completed'] end | 
#date_created ⇒ Time
| 330 331 332 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 330 def date_created @properties['date_created'] end | 
#date_updated ⇒ Time
| 336 337 338 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 336 def date_updated @properties['date_updated'] end | 
#delete ⇒ Boolean
Delete the AddOnResultInstance
| 368 369 370 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 368 def delete context.delete end | 
#fetch ⇒ AddOnResultInstance
Fetch the AddOnResultInstance
| 361 362 363 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 361 def fetch context.fetch end | 
#inspect ⇒ Object
Provide a detailed, user friendly representation
| 388 389 390 391 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 388 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Api.V2010.AddOnResultInstance #{values}>" end | 
#payloads ⇒ payloads
Access the payloads
| 375 376 377 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 375 def payloads context.payloads end | 
#reference_sid ⇒ String
| 348 349 350 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 348 def reference_sid @properties['reference_sid'] end | 
#sid ⇒ String
| 300 301 302 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 300 def sid @properties['sid'] end | 
#status ⇒ add_on_result.Status
| 312 313 314 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 312 def status @properties['status'] end | 
#subresource_uris ⇒ String
| 354 355 356 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 354 def subresource_uris @properties['subresource_uris'] end | 
#to_s ⇒ Object
Provide a user friendly representation
| 381 382 383 384 | # File 'lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb', line 381 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Api.V2010.AddOnResultInstance #{values}>" end |