lib/comicvine/list.rb in comicvine-0.1.1 vs lib/comicvine/list.rb in comicvine-0.1.2

- old
+ new

@@ -51,11 +51,11 @@ def initialize(resp, resc) super(resp) @resource = resc - @cvos = resp['results'].map { |r| ComicVine::Resource.new(r) } + @cvos = resp['results'].map { |r| ComicVine::Resource.create_resource(r) } end def next_page return nil if (@offset + @page_count) >= @total_count update_ivals(ComicVine::API.send(@resource, {:limit => @limit, :offset => (@offset + @page_count)})) @@ -77,10 +77,10 @@ def initialize(resp, resc, query) super(resp) @resource = resc @query = query - @cvos = resp['results'].map { |r| ComicVine::Resource.new(r) } + @cvos = resp['results'].map { |r| ComicVine::Resource.create_resource(r) } end ## # Moves search to the next offset results def next_page \ No newline at end of file