lib/eucalyptus/response.rb in eucalyptus-0.3.2 vs lib/eucalyptus/response.rb in eucalyptus-0.3.3
- old
+ new
@@ -21,11 +21,13 @@
self.concat elements(@koala_response)
end
def next_page
- next_page = @koala_response.next_page
- self.class.new(@klass, next_page)
+ next_p = @koala_response.next_page
+ if next_p
+ self.class.new(@klass, next_p)
+ end
end
private
def elements(response)
response.collect{ |res| @klass.new(res) }