lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-6.11.0 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-6.12.0

- old
+ new

@@ -28,12 +28,11 @@ def initialize(version, account_sid: nil) super(version) # Path Solution @solution = { account_sid: account_sid } @uri = "/Accounts/#{@solution[:account_sid]}/Calls.json" - # Components - @feedback_summaries = nil + end ## # Create the CallInstance # @param [String] to The phone number, SIP address, or client identifier to call. # @param [String] from The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `From` must also be a phone number. @@ -300,24 +299,11 @@ ) CallPage.new(@version, response, @solution) end - ## - # Access the feedback_summaries - # @return [FeedbackSummaryList] - # @return [FeedbackSummaryContext] if sid was passed. - def feedback_summaries(sid=:unset) - raise ArgumentError, 'sid cannot be nil' if sid.nil? - if sid != :unset - return FeedbackSummaryContext.new(@version, @solution[:account_sid],sid ) - end - - @feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid] ) - end - # Provide a user friendly representation def to_s '#<Twilio.Api.V2010.CallList>' end end @@ -343,11 +329,10 @@ @siprec = nil @user_defined_message_subscriptions = nil @payments = nil @recordings = nil @notifications = nil - @feedback = nil @streams = nil end ## # Delete the CallInstance # @return [Boolean] True if delete succeeds, false otherwise @@ -534,21 +519,10 @@ end @notifications end ## - # Access the feedback - # @return [FeedbackList] - # @return [FeedbackContext] - def feedback - FeedbackContext.new( - @version, - @solution[:account_sid], - @solution[:sid] - ) - end - ## # Access the streams # @return [StreamList] # @return [StreamContext] if sid was passed. def streams(sid=:unset) @@ -922,16 +896,9 @@ ## # Access the notifications # @return [notifications] notifications def notifications context.notifications - end - - ## - # Access the feedback - # @return [feedback] feedback - def feedback - context.feedback end ## # Access the streams # @return [streams] streams