Class: Twilio::REST::Voice::V1::ArchivedCallInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Voice::V1::ArchivedCallInstance
- Defined in:
- lib/twilio-ruby/rest/voice/v1/archived_call.rb
Instance Method Summary collapse
-
#context ⇒ ArchivedCallContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#delete ⇒ Boolean
Delete the ArchivedCallInstance.
-
#initialize(version, date: nil, sid: nil) ⇒ ArchivedCallInstance
constructor
Initialize the ArchivedCallInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, date: nil, sid: nil) ⇒ ArchivedCallInstance
Initialize the ArchivedCallInstance
255 256 257 258 259 260 261 262 263 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 255 def initialize(version , date: nil, sid: nil) super(version) # Context @instance_context = nil @params = { 'date' => date || @properties['date'] ,'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#context ⇒ ArchivedCallContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
269 270 271 272 273 274 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 269 def context unless @instance_context @instance_context = ArchivedCallContext.new(@version , @params['date'], @params['sid']) end @instance_context end |
#delete ⇒ Boolean
Delete the ArchivedCallInstance
279 280 281 282 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 279 def delete context.delete end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
293 294 295 296 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 293 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Voice.V1.ArchivedCallInstance #{values}>" end |
#to_s ⇒ Object
Provide a user friendly representation
286 287 288 289 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 286 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Voice.V1.ArchivedCallInstance #{values}>" end |