lib/pipekit/result.rb in pipekit-1.0.0 vs lib/pipekit/result.rb in pipekit-1.0.1
- old
+ new
@@ -16,11 +16,11 @@
def +(other)
self.class.new(other.merged_response(response_body))
end
def fetch_next_request?
- Config.fetch("request_all_pages", true) && pagination_data["more_items_in_collection"]
+ Config.fetch(:request_all_pages, true) && pagination_data["more_items_in_collection"]
end
def next_start
pagination_data["next_start"]
end
@@ -64,10 +64,10 @@
def initialize(response)
@response = response
end
def message
- "Resource not found: #{@response}"
+ "Resource not found, response was: #{@response}"
end
end
class UnsuccessfulRequestError < StandardError
def initialize(response)