lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-7.0.0.pre.rc.1 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-7.0.0.pre.rc.2
- 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.
@@ -276,24 +275,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
@@ -319,11 +305,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
@@ -510,21 +495,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)
@@ -898,16 +872,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