lib/reviewed/collection.rb in reviewed-0.0.1 vs lib/reviewed/collection.rb in reviewed-0.0.2

- old
+ new

@@ -5,9 +5,10 @@ def_delegators :@items, :<<, :[], :[]=, :each, :first, :last, :length, :concat, :map, :collect, :empty? attr_accessor :raw_response def initialize(klass, json, options={}) + json = json.symbolize_keys! page_data = json[:pagination].symbolize_keys! @items = [] items = json[:data] items.each do |item|