lib/finix/pagination.rb in finix-0.6 vs lib/finix/pagination.rb in finix-0.7

- old
+ new

@@ -69,9 +69,10 @@ @attributes = {} # clear attributes if body.has_key? '_embedded' resource_name, resources = body.delete('_embedded').first @resource_class = Finix.from_hypermedia_registry resource_name @attributes['items'] = resources.map { |item| @resource_class.construct_from_response item } + @attributes['page'] = body.delete('page') end end end end \ No newline at end of file