lib/twilio-ruby/framework/version.rb in twilio-ruby-5.40.1 vs lib/twilio-ruby/framework/version.rb in twilio-ruby-5.40.2
- old
+ new
@@ -110,21 +110,16 @@
response.status_code == 204
end
def read_limits(limit = nil, page_size = nil)
- page_limit = nil
-
- unless limit.nil?
- # If there is no user-specified page_size, pick the most network efficient size
+ unless limit.nil? || page_size
page_size = limit
- page_limit = (limit / page_size.to_f).ceil
end
{
limit: limit || nil,
- page_size: page_size || nil,
- page_limit: page_limit
+ page_size: page_size || nil
}
end
def page(method, uri, params: {}, data: {}, headers: {}, auth: nil, timeout: nil)
request(