lib/skydrive/collection.rb in skydrive-1.1.0 vs lib/skydrive/collection.rb in skydrive-1.2.0
- old
+ new
@@ -18,14 +18,14 @@
# @return [Array]
def items
@items = []
@data.each do |object_data|
if object_data["type"]
- @items << "Skydrive::#{object_data["type"].capitalize}".constantize.new(self, object_data)
+ @items << "Skydrive::#{object_data["type"].capitalize}".constantize.new(client, object_data)
elsif object_data["id"].match /^comment\..+/
@items << Skydrive::Comment.new(client, object_data)
end
end
@items
end
end
-end
\ No newline at end of file
+end