lib/reviewed/collection.rb in reviewed-0.2.2 vs lib/reviewed/collection.rb in reviewed-0.4.0
- old
+ new
@@ -14,10 +14,10 @@
@client = client
@klass = klass
@params = params
@items = []
- @page_attributes = body.pagination
+ @page_attributes = body.pagination || {}
data.each do |obj|
self.items << klass.new(obj)
end
end