lib/mailgun/events/events.rb in mailgun-ruby-1.2.11 vs lib/mailgun/events/events.rb in mailgun-ruby-1.2.12

- old
+ new

@@ -86,10 +86,10 @@ # response - a Mailgun::Response object # # Return is irrelevant. def extract_paging(response) paging = response.to_h['paging'] - next_page_url = paging && paging['next'] # gives nil when any one of the keys doens't exist + next_page_url = paging && paging['next'] # gives nil when any one of the keys doesn't exist previous_page_url = paging && paging['previous'] # can be replaced with Hash#dig for ruby >= 2.3.0 @paging_next = extract_endpoint_from(next_page_url) @paging_previous = extract_endpoint_from(previous_page_url) end