lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.4.5
- old
+ new
@@ -112,11 +112,11 @@
'POST',
@uri,
data: data
)
- CallInstance.new(@version, payload, account_sid: @solution[:account_sid],)
+ CallInstance.new(@version, payload, account_sid: @solution[:account_sid])
end
##
# Lists CallInstance records from the API as a list.
# Unlike stream(), this operation is eager and will load `limit` records into
@@ -203,11 +203,11 @@
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
def each
limits = @version.read_limits
- page = self.page(page_size: limits[:page_size],)
+ page = self.page(page_size: limits[:page_size])
@version.stream(page,
limit: limits[:limit],
page_limit: limits[:page_limit]).each {|x| yield x}
end
@@ -274,14 +274,14 @@
# @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,)
+ return FeedbackSummaryContext.new(@version, @solution[:account_sid], sid)
end
- @feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid],)
+ @feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid])
end
##
# Provide a user friendly representation
def to_s
@@ -306,11 +306,11 @@
##
# Build an instance of CallInstance
# @param [Hash] payload Payload response from the API
# @return [CallInstance] CallInstance
def get_instance(payload)
- CallInstance.new(@version, payload, account_sid: @solution[:account_sid],)
+ CallInstance.new(@version, payload, account_sid: @solution[:account_sid])
end
##
# Provide a user friendly representation
def to_s
@@ -327,11 +327,11 @@
# @return [CallContext] CallContext
def initialize(version, account_sid, sid)
super(version)
# Path Solution
- @solution = {account_sid: account_sid, sid: sid,}
+ @solution = {account_sid: account_sid, sid: sid}
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:sid]}.json"
# Dependents
@recordings = nil
@notifications = nil
@@ -355,11 +355,11 @@
'GET',
@uri,
params,
)
- CallInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
+ CallInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid])
end
##
# Update the CallInstance
# @param [String] url A valid URL that returns TwiML. Twilio will immediately
@@ -394,22 +394,22 @@
'POST',
@uri,
data: data,
)
- CallInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
+ CallInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid])
end
##
# Access the recordings
# @return [RecordingList]
# @return [RecordingContext] if sid was passed.
def recordings(sid=:unset)
raise ArgumentError, 'sid cannot be nil' if sid.nil?
if sid != :unset
- return RecordingContext.new(@version, @solution[:account_sid], @solution[:sid], sid,)
+ return RecordingContext.new(@version, @solution[:account_sid], @solution[:sid], sid)
end
unless @recordings
@recordings = RecordingList.new(
@version,
@@ -427,11 +427,11 @@
# @return [NotificationContext] if sid was passed.
def notifications(sid=:unset)
raise ArgumentError, 'sid cannot be nil' if sid.nil?
if sid != :unset
- return NotificationContext.new(@version, @solution[:account_sid], @solution[:sid], sid,)
+ return NotificationContext.new(@version, @solution[:account_sid], @solution[:sid], sid)
end
unless @notifications
@notifications = NotificationList.new(
@version,
@@ -446,11 +446,11 @@
##
# Access the feedback
# @return [FeedbackList]
# @return [FeedbackContext]
def feedback
- FeedbackContext.new(@version, @solution[:account_sid], @solution[:sid],)
+ FeedbackContext.new(@version, @solution[:account_sid], @solution[:sid])
end
##
# Provide a user friendly representation
def to_s
@@ -500,19 +500,19 @@
'uri' => payload['uri'],
}
# Context
@instance_context = nil
- @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
+ @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid']}
end
##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
# @return [CallContext] CallContext for this CallInstance
def context
unless @instance_context
- @instance_context = CallContext.new(@version, @params['account_sid'], @params['sid'],)
+ @instance_context = CallContext.new(@version, @params['account_sid'], @params['sid'])
end
@instance_context
end
##
\ No newline at end of file