lib/taleo/client.rb in taleo-0.4.0 vs lib/taleo/client.rb in taleo-0.5.0
- old
+ new
@@ -47,10 +47,11 @@
})
end
data = JSON.parse(res.body)
pagination = data.dig('response', 'pagination')
results = data.dig('response', 'searchResults')
- Cursor.new(pagination, results, resource, klass, self)
+ cursor = Cursor.new(pagination, results, resource, klass, self)
+ cursor.self_page
end
def show(resource, id)
res = connection.get do |req|
req.url "object/#{resource}/#{id}"