lib/twilio-ruby/rest/api/v2010/account/queue/member.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/api/v2010/account/queue/member.rb in twilio-ruby-5.4.5
- old
+ new
@@ -53,11 +53,11 @@
# efficient page size, i.e. min(limit, 1000)
# @return [Enumerable] Enumerable that will yield up to limit results
def stream(limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)
- 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])
end
##
@@ -65,11 +65,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
@@ -159,11 +159,11 @@
# @return [MemberContext] MemberContext
def initialize(version, account_sid, queue_sid, call_sid)
super(version)
# Path Solution
- @solution = {account_sid: account_sid, queue_sid: queue_sid, call_sid: call_sid,}
+ @solution = {account_sid: account_sid, queue_sid: queue_sid, call_sid: call_sid}
@uri = "/Accounts/#{@solution[:account_sid]}/Queues/#{@solution[:queue_sid]}/Members/#{@solution[:call_sid]}.json"
end
##
# Fetch a MemberInstance
@@ -190,11 +190,11 @@
# Update the MemberInstance
# @param [String] url The url
# @param [String] method The method
# @return [MemberInstance] Updated MemberInstance
def update(url: nil, method: nil)
- data = Twilio::Values.of({'Url' => url, 'Method' => method,})
+ data = Twilio::Values.of({'Url' => url, 'Method' => method})
payload = @version.update(
'POST',
@uri,
data: data,
@@ -305,10 +305,10 @@
# Update the MemberInstance
# @param [String] url The url
# @param [String] method The method
# @return [MemberInstance] Updated MemberInstance
def update(url: nil, method: nil)
- context.update(url: url, method: method,)
+ context.update(url: url, method: method)
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file