lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.42.0 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.43.0
- old
+ new
@@ -424,10 +424,11 @@
# Dependents
@recordings = nil
@notifications = nil
@feedback = nil
+ @events = nil
@payments = nil
end
##
# Delete the CallInstance
@@ -545,10 +546,22 @@
def feedback
FeedbackContext.new(@version, @solution[:account_sid], @solution[:sid], )
end
##
+ # Access the events
+ # @return [EventList]
+ # @return [EventContext]
+ def events
+ unless @events
+ @events = EventList.new(@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
+ end
+
+ @events
+ end
+
+ ##
# Access the payments
# @return [PaymentList]
# @return [PaymentContext] if sid was passed.
def payments(sid=:unset)
raise ArgumentError, 'sid cannot be nil' if sid.nil?
@@ -881,9 +894,16 @@
##
# Access the feedback
# @return [feedback] feedback
def feedback
context.feedback
+ end
+
+ ##
+ # Access the events
+ # @return [events] events
+ def events
+ context.events
end
##
# Access the payments
# @return [payments] payments
\ No newline at end of file