Class: Twilio::REST::Voice::V1::ArchivedCallContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Voice::V1::ArchivedCallContext
- Defined in:
- lib/twilio-ruby/rest/voice/v1/archived_call.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#delete ⇒ Boolean
Delete the ArchivedCallInstance.
-
#initialize(version, date, sid) ⇒ ArchivedCallContext
constructor
Initialize the ArchivedCallContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, date, sid) ⇒ ArchivedCallContext
Initialize the ArchivedCallContext
51 52 53 54 55 56 57 58 59 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 51 def initialize(version, date, sid) super(version) # Path Solution @solution = { date: date, sid: sid, } @uri = "/Archives/#{@solution[:date]}/Calls/#{@solution[:sid]}" end |
Instance Method Details
#delete ⇒ Boolean
Delete the ArchivedCallInstance
63 64 65 66 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 63 def delete @version.delete('DELETE', @uri) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
78 79 80 81 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 78 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Voice.V1.ArchivedCallContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
71 72 73 74 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 71 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Voice.V1.ArchivedCallContext #{context}>" end |