lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb in twilio-ruby-5.0.0.rc12 vs lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb in twilio-ruby-5.0.0.rc13

- old
+ new

@@ -85,14 +85,14 @@ # @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_size: limits[:page_size], ) - @version.stream(page, limit: limits['limit'], page_limit: limits['page_limit']) + @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end ## # When passed a block, yields MessageInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit @@ -105,15 +105,15 @@ # limit with the most efficient page size, i.e. min(limit, 1000) def each limits = @version.read_limits page = self.page( - page_size: limits['page_size'], + page_size: limits[:page_size], ) @version.stream(page, - limit: limits['limit'], - page_limit: limits['page_limit']).each {|x| yield x} + limit: limits[:limit], + page_limit: limits[:page_limit]).each {|x| yield x} end ## # Retrieve a single page of MessageInstance records from the API. # Request is executed immediately. \ No newline at end of file