lib/twilio-ruby/rest/notify/v1/service/segment.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/notify/v1/service/segment.rb in twilio-ruby-5.4.5
- old
+ new
@@ -52,11 +52,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
##
@@ -64,11 +64,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
@@ -133,10 +133,10 @@
##
# Build an instance of SegmentInstance
# @param [Hash] payload Payload response from the API
# @return [SegmentInstance] SegmentInstance
def get_instance(payload)
- SegmentInstance.new(@version, payload, service_sid: @solution[:service_sid],)
+ SegmentInstance.new(@version, payload, service_sid: @solution[:service_sid])
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file