lib/buttercms/butter_collection.rb in buttercms-ruby-1.5 vs lib/buttercms/butter_collection.rb in buttercms-ruby-1.6
- old
+ new
@@ -1,9 +1,10 @@
module ButterCMS
class ButterCollection
include Enumerable
+ attr_reader :items
attr_reader :meta
def initialize(klass, json)
data = json["data"]
meta = json["meta"]
@@ -16,6 +17,6 @@
@items.each do |member|
block.call(member)
end
end
end
-end
\ No newline at end of file
+end